update 11_4_2019
This commit is contained in:
@@ -42,9 +42,8 @@ class DesignerModel extends Model {
|
||||
|
||||
$pdo = DB::connection()->getPdo();
|
||||
$query = $pdo->prepare("SELECT NULL AS RGBIndex, RGBColor AS default_Color, DisplayName FROM template_body_colors WHERE TemplateCode = '$templateCode' UNION SELECT TrimNumber, RGBColor AS default_Color, DisplayName FROM template_trim_colors WHERE TemplateCode = '$templateCode'");
|
||||
$query->execute();//$query->execute(array($bindings ));
|
||||
// $row=$query->fetch(\PDO::FETCH_OBJ);
|
||||
|
||||
$query->execute();
|
||||
|
||||
while($row=$query->fetch(\PDO::FETCH_OBJ)) {
|
||||
if($row->RGBIndex == NULL){
|
||||
$IndexName = "default_mainColor";
|
||||
|
||||
Reference in New Issue
Block a user