Missing function 'delete_image' when deling item. Fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 24 Jan 2022 07:57:30 +0000 (08:57 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 24 Jan 2022 07:57:30 +0000 (08:57 +0100)
inventory/manage/items.php

index 286601efd491e32abf835c7af3c3a21f5686d293..d4904041b2e0c3752f2d5fdf1c1a9e7bc5345ab2 100644 (file)
@@ -56,7 +56,7 @@ function set_edit($stock_id)
        $_POST['del_image'] = 0;
 }
 
-function del_image($stock_id)
+function delete_image($stock_id)
 {
        foreach (array('jpg', 'png', 'gif') as $ext) {
                $filename = company_path().'/images/'.item_img_name($stock_id).".".$ext;