diff --git a/application/controllers/Items.php b/application/controllers/Items.php index be8093ce5..3526d9976 100644 --- a/application/controllers/Items.php +++ b/application/controllers/Items.php @@ -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)) {