Create item with "0" values in number fields
Hi guys,
Using PodioPHP to create app items, I add PodioNumberItemField to my item and set value to 0. When I save() my item it is created in the app, but the field is empty (blank). If I edit it to put 0 then 0 is saved, but through the API it seems 0-values are dropped and considered empty fields. So how do I force it?
-
Hi Louis-Philippe,
The set_value function was a little too loose with its type checking. Should be fixed here so pull a fresh copy and try again: https://github.com/podio/podio-php/commit/fe56f21fef549be52961afa92dd01288821b69ab
/Andreas
Please sign in to leave a comment.
Comments
2 comments