X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fitems.php;h=1391b825da10ae35f305a6165b31454b3535f813;hb=5089910120614dfb8b76a0271b43739f90f38b01;hp=0793bb38a82c9d630965215d01d2ead3c770e356;hpb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;p=fa-stable.git diff --git a/inventory/manage/items.php b/inventory/manage/items.php index 0793bb38..1391b825 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -276,7 +276,8 @@ if ($new_item) } else { // Must be modifying an existing item - if (!isset($_POST['NewStockID'])) { + if (get_post('NewStockID') != get_post('stock_id')) { // first item display + $_POST['NewStockID'] = $_POST['stock_id']; $myrow = get_item($_POST['NewStockID']); @@ -305,7 +306,7 @@ else set_focus('description'); } -text_row(_("Name:"), 'description', null, 52, 50); +text_row(_("Name:"), 'description', null, 52, 200); textarea_row(_('Description:'), 'long_description', null, 42, 3); @@ -393,7 +394,7 @@ if (isset($_POST['NewStockID']) && file_exists(company_path().'/images/' { // 31/08/08 - rand() call is necessary here to avoid caching problems. Thanks to Peter D. $stock_img_link .= "[".$_POST["; $check_remove_image = true; }