Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/code/Magento/CatalogInventory/Helper/Minsaleqty.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function serializeValue($value)
}
return $this->serializer->serialize($data);
} else {
return '';
return $value;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function testMakeStorableArrayFieldValue($value, $result, $serializeCallC
public function makeStorableArrayFieldValueDataProvider()
{
return [
'invalid bool' => [false, ''],
'invalid bool' => [false, false],
'invalid empty string' => ['', ''],
'valid numeric' => ['22', '22'],
'valid empty array' => [[], '[]', 1],
Expand All @@ -240,7 +240,8 @@ public function makeStorableArrayFieldValueDataProvider()
'[1]',
1,
[0 => 1.0]
]
],
'json value' => ['{"32000":2,"0":1}', '{"32000":2,"0":1}'],
];
}
}