mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-19 19:32:52 -04:00
Fixed missing function call
This removes the function call to a function that doesn't exist anymore. The replacement does the same job in one line of code. Added comment to bring clarity to what the code is doing.
This commit is contained in:
@@ -913,7 +913,8 @@ class Items extends Secure_Controller
|
||||
$is_failed_row = $this->data_error_check($row, $item_data, $allowed_stock_locations, $attribute_definition_names, $attribute_data);
|
||||
}
|
||||
|
||||
$item_data = $this->item_lib->custom_array_filter($item_data);
|
||||
//Remove FALSE, NULL, '' and empty strings but keep 0
|
||||
$item_data = array_filter($item_data, 'strlen');
|
||||
|
||||
if(!$is_failed_row && $this->Item->save($item_data, $item_id))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user