Merge branch 'stable' into master

This commit is contained in:
Dylan K. Taylor
2020-08-03 20:14:46 +01:00
5 changed files with 77 additions and 66 deletions

View File

@ -137,6 +137,8 @@ class InventoryTransaction{
* @throws TransactionValidationException
*/
protected function matchItems(array &$needItems, array &$haveItems) : void{
$needItems = [];
$haveItems = [];
foreach($this->actions as $key => $action){
if(!$action->getTargetItem()->isNull()){
$needItems[] = $action->getTargetItem();