From: Janusz Dobrowolski Date: Tue, 13 Jan 2015 08:54:10 +0000 (+0100) Subject: selected_kit parameter should be passed to function as argument instead of global... X-Git-Tag: v2.4.2~19^2~266 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=b9981b57fff637cd1f18ae14af824590bcdde794;p=fa-stable.git selected_kit parameter should be passed to function as argument instead of global variable. --- diff --git a/inventory/manage/sales_kits.php b/inventory/manage/sales_kits.php index 4368bb7a..f1df8e8d 100644 --- a/inventory/manage/sales_kits.php +++ b/inventory/manage/sales_kits.php @@ -63,9 +63,9 @@ div_end(); //-------------------------------------------------------------------------------------------------- -function update_component($kit_code, $selected_item) +function update_component($kit_code, $selected_item, $selected_kit) { - global $Mode, $Ajax, $selected_kit; + global $Mode, $Ajax; if (!check_num('quantity', 0)) {