Skip to content

Commit

Permalink
fixed explode serial ignore space
Browse files Browse the repository at this point in the history
  • Loading branch information
Trexology committed Mar 7, 2018
1 parent 4c94608 commit 82aab6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/InventoryStockTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ protected function processPutOperation($putting, $reason = '', $cost = 0, $recei
}

if (is_string($serial)) {
$serial = explode(',', $serial);
$serial = preg_split('@,@', $serial, NULL, PREG_SPLIT_NO_EMPTY);
}
if ($this->serial) {
$this->serial = array_merge($this->serial,$serial);
Expand Down

0 comments on commit 82aab6e

Please sign in to comment.