Fixed page update after code search.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 18 Mar 2009 14:30:54 +0000 (14:30 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 18 Mar 2009 14:30:54 +0000 (14:30 +0000)
inventory/manage/sales_kits.php

index 6040fcd81295a642353fbd0c9f8acad23faf2134..3e0492fa268c0129816d17dea68449cb6e3fdb2b 100644 (file)
@@ -178,7 +178,6 @@ if ($Mode == 'RESET')
        unset($_POST['quantity']);
        unset($_POST['component']);
 }
-
 //--------------------------------------------------------------------------------------------------
 
 start_form(false, true);
@@ -188,7 +187,7 @@ sales_kits_list('item_code', null, _('New kit'), true);
 echo "</center><br>";
 $props = get_kit_props($_POST['item_code']);
 
-if (isset($_POST['_item_code_update'])) {
+if (list_updated('item_code')) {
        if (get_post('item_code') == '')
                $_POST['description'] = '';
        $Ajax->activate('_page_body');