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:
objecttothis
2021-08-05 15:44:52 +04:00
committed by jekkos
parent 5ebe626543
commit 9217f2d12f

View File

@@ -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))
{