projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0000290] Can't upload files
[fa-stable.git]
/
inventory
/
manage
/
items.php
diff --git
a/inventory/manage/items.php
b/inventory/manage/items.php
index 0793bb38a82c9d630965215d01d2ead3c770e356..1391b825da10ae35f305a6165b31454b3535f813 100644
(file)
--- a/
inventory/manage/items.php
+++ b/
inventory/manage/items.php
@@
-276,7
+276,8
@@
if ($new_item)
}
else
{ // Must be modifying an existing 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']);
$_POST['NewStockID'] = $_POST['stock_id'];
$myrow = get_item($_POST['NewStockID']);
@@
-305,7
+306,7
@@
else
set_focus('description');
}
set_focus('description');
}
-text_row(_("Name:"), 'description', null, 52,
5
0);
+text_row(_("Name:"), 'description', null, 52,
20
0);
textarea_row(_('Description:'), 'long_description', null, 42, 3);
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 .= "<img id='item_img' alt = '[".$_POST['NewStockID'].".jpg".
{
// 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;
}
".jpg?nocache=".rand()."'"." height='$pic_height' border='0'>";
$check_remove_image = true;
}