}
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']);
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);
{
// 31/08/08 - rand() call is necessary here to avoid caching problems. Thanks to Peter D.
$stock_img_link .= "<img id='item_img' alt = '[".$_POST['NewStockID'].".jpg".
- "]' src='".company_path().'images/'.item_img_name($_POST['NewStockID']).
+ "]' src='".company_path().'/images/'.item_img_name($_POST['NewStockID']).
".jpg?nocache=".rand()."'"." height='$pic_height' border='0'>";
$check_remove_image = true;
}