Skip to content

Commit 309cd73

Browse files
authored
Fixing bug when custom field equal to 0 (#445)
Fixing bug with deleting custom field if it is equal to 0
1 parent 11bde13 commit 309cd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonMapperHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static function setUndefinedProperty($object, $propName, $jsonValue)
1717
{
1818
// If the property is a custom field type, assign a value to the custom Fields array.
1919
if (substr($propName, 0, 12) == 'customfield_') {
20-
if (!empty($jsonValue)) {
20+
if (!is_null($jsonValue)) {
2121
$object->{$propName} = $jsonValue;
2222
$object->customFields[$propName] = $jsonValue;
2323
}

0 commit comments

Comments
 (0)