mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-15 12:32:33 -04:00
Correct bug preventing new item creation
The `===` (type comparison equality operator) was preventing new items from being created because $item_id was coming through as a string and not an integer.
This commit is contained in:
committed by
FrancescoUK
parent
a2e7c0a74b
commit
ad7ae23f2c
@@ -566,7 +566,7 @@ class Items extends Secure_Controller
|
|||||||
$success = TRUE;
|
$success = TRUE;
|
||||||
$new_item = FALSE;
|
$new_item = FALSE;
|
||||||
|
|
||||||
if($item_id === NEW_ITEM)
|
if($item_id == NEW_ITEM)
|
||||||
{
|
{
|
||||||
$item_id = $item_data['item_id'];
|
$item_id = $item_data['item_id'];
|
||||||
$new_item = TRUE;
|
$new_item = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user