Skip to content

Commit

Permalink
Merge pull request #913 from plentymarkets/fix/shopbuilder_faker_data
Browse files Browse the repository at this point in the history
FIX shopbuilder faker data
  • Loading branch information
felixdausch authored Nov 9, 2020
2 parents ca17625 + f92cb04 commit fb0111a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function merge(&$object, $defaults)
{
$this->merge($object[$key], (array)$defaultValue);
}
else if (is_null($object[$key]))
else if (is_null($object[$key]) || $object[$key] === 0)
{
$object[$key] = $defaultValue;
}
Expand Down
3 changes: 2 additions & 1 deletion src/Services/ItemSearch/Factories/Faker/VariationFaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public function fill($data)
"automaticClientVisibility" => $this->number(0, 3),
"automaticListVisibility" => $this->number(0, 3),
"isHiddenInCategoryList" => $this->boolean(),
"availability" => $this->makeAvailability()
"availability" => $this->makeAvailability(),
"customsTariffNumber" => $this->serial()
];

$this->merge($data, $default);
Expand Down

0 comments on commit fb0111a

Please sign in to comment.