+ Add Question

Project JSON object returned from addProject has color: 0


I would assume the default should be assigned instead of just 0?

Here is my example response from addProject, i've removed id's:

{"user_id": OMITTED, "name": "Test project XYZ", "color": 0, "collapsed": 0, "item_order": 20, "cache_count": 0, "indent": 1, "id": OMITTED}

All responses

René Hansen
Replied on Jul 11, 2011 - 10:20 UTC

I noticed that updateProject also returns the index of the color rather than the actual color string.

Is it an intentional inconsistency compared to getProjects, which has the real color set as a string?

David Trey  staff
Replied on Jul 12, 2011 - 16:55 UTC

Hello René,

it has been fixed.

Best regards,