Fixed stock item image upload bug.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 18 Jun 2008 17:39:45 +0000 (17:39 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 18 Jun 2008 17:39:45 +0000 (17:39 +0000)
CHANGELOG.txt
inventory/manage/items.php

index 0e88b44058594234ad132e9ee9a4b1ac2288c20b..b83cd89bfbb57db5306548f3d6ef5755fdcce880 100644 (file)
@@ -38,6 +38,8 @@ $ /includes/ui/ui_lists.inc
 $ /js/inserts.js
 # Fixed addAssign() js handler for nonstandard attributes
 $ /js/utils.js
+# Fixed bug in stock item image upload
+$ /inventory/manage/items.php
 
 17-Jun-2008 Joe Hunt
 ! More files with Quantity routines needed fix due to php4 related issue.
index 199addb25f245926dabdabf3ae350fdfe038da45..967cb5e67ec56c400d1e09274d835818c7b05b9e 100644 (file)
@@ -44,7 +44,7 @@ if (isset($_FILES['pic']) && $_FILES['pic']['name'] != '')
        {
                mkdir($filename);
        }       
-       $filename .= "$stock_id.jpg";
+       $filename .= "/$stock_id.jpg";
        
         //But check for the worst 
        if (strtoupper(substr(trim($_FILES['pic']['name']), strlen($_FILES['pic']['name']) - 3)) != 'JPG')