bugfix matrixprodukt int cast

This commit is contained in:
OpenXE 2024-11-28 16:00:35 +01:00
parent e294b9657f
commit a93dd971eb

View File

@ -379,7 +379,7 @@ class Matrixprodukt
}
$list = $newList;
}
$oldnumber = $this->app->DB->Select("SELECT nummer FROM artikel WHERE id = (int)$json->articleId");
$oldnumber = $this->app->DB->Select("SELECT nummer FROM artikel WHERE id = ".((int)$json->articleId));
$created = [];
foreach ($list as $optionSet) {
$variantId = $this->service->GetVariantIdByOptionSet($optionSet);
@ -446,4 +446,4 @@ class Matrixprodukt
$this->app->YUI->TableSearch('TABOPT', 'matrixproduct_option_translations', "show", "", "", basename(__FILE__), __CLASS__);
$this->app->Tpl->Parse('PAGE', "matrixprodukt_translation.tpl");
}
}
}