From a93dd971ebb3289aab1b004ad149c469d14075bb Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 28 Nov 2024 16:00:35 +0100 Subject: [PATCH] bugfix matrixprodukt int cast --- www/pages/matrixprodukt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/pages/matrixprodukt.php b/www/pages/matrixprodukt.php index ec7f9115..3b9ff5ad 100644 --- a/www/pages/matrixprodukt.php +++ b/www/pages/matrixprodukt.php @@ -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"); } -} \ No newline at end of file +}