Strange problem: If you're using Content Taxonomy with the Options Widgets module and have for example two Taxonomy terms named "term 1" and "term 2" as checkboxes, one of them has to remain checked or the change isn't recorded.

You can check "term 1" or "term 2" and it works, you can check "term 1" and "term 2" and it works, but if you uncheck both "term 1" and "term 2" nothing happens.

Driven forces one of the checkboxes to always be selected. The terms can be unchecked by editing the node the old fashioned way, so the problem is definitely with Driven.

Comments

arhak’s picture

could you please provide detailed configuration of your content_taxonomy field?

jthomasbailey’s picture

andystox’s picture

StatusFileSize
new5.76 KB

I am having the same issue.

I'm using content taxonomy to generate a checklist of taxonomy terms and I'm using the editablefields module to allow them to be edited in place.

It all works fine unless I have only one item checked, when I try to uncheck that item I get an error warning: Cannot use a scalar value as an array.

It looks like it's expecting the object to be an array but it's not.

Have you had any luck with this issue?

arhak’s picture

Status: Active » Postponed

It looks like it's expecting the object to be an array but it's not.

indeed,
thanks for your report, it is more specific,

I have a clue whether the problem might lie,
regretfully, I don't have the time to dig into it

arhak’s picture

Project: Comment driven » Driven API
Status: Postponed » Needs review

guys, I need you to do some test that might seem unrelated, but it is required to avoid regressions

this bug was introduced while attempting to cover another different case:
- content_taxonomy with autocomplete widget
- Deny any new terms: checked
- attempting to introduce new tags leads to a validation error
- therefore no diff should be shown

attached patch aims current issue and also attempts to preserve case mentioned above

arhak’s picture

StatusFileSize
new2.1 KB
arhak’s picture

@#3
BTW never got to reproduce the "Cannot use a scalar value as an array" error
could you please provide the full error message (to see if it is displaying a filename & line number)

PS: proposed patch addressed OP, not sure what can be causing error @#3, that one would require more details and most likely its own separated issue