Hello!
There appears to be a bug with exporting context options via hook_hosting_TASK_OBJECT_context_options().
Whenever I try to export a new value and the value is either 0, FALSE or an empty string - the back-end ignores the new value and keeps the old one.
So:
- if I have an option with a string value, say 'my value', and try to update it with '' (empty string) - it won't update.
- if I have an option with an int value, say 22, and try to update it with 0 - it won't update
- if I have an option with a boolean value, say TRUE, and try to update it with FALSE - it won't update
Spend half a day trying to figure out what is going on here.
May be not critical, but annoying and requires some workarounds.
If not to fix it, then at least to add a note to the hook_hosting_TASK_OBJECT_context_options() documentation.
Cheers!
Comments
Comment #1
ergonlogicThis'd be an API change, so bumping to 3.x. I'll leave at 'critical' for now, since it's a pretty severe limitation, though I hadn't come across it before.
Comment #2
helmo CreditAttribution: helmo at Initfour websolutions commentedReclassifying to major, to get a released out.
We'd like to fix this but as it's not hindering regular setups we still have to find time to do it.