Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
module works well when create content, but show error while to modify it.
Comment | File | Size | Author |
---|---|---|---|
#1 | reference_option_limit_illegal_choice-2075079-1.patch | 1.08 KB | glekli |
QQ图片20130827210510.jpg | 109.72 KB | bruceci | |
QQ图片20130827205529.jpg | 37.78 KB | bruceci | |
QQ图片20130827205026.jpg | 103.98 KB | bruceci |
Comments
Comment #1
glekli CreditAttribution: glekli commentedThis issue is occurring when an existing node is being edited, and a field's original value is not among the allowed options any more due to the selection in the limiting field. I'm attaching a patch that resets the default value in the field when it's not valid anymore. The patch is against 1.5.
Comment #3
joachim CreditAttribution: joachim commentedWouldn't it be better to remove just the illegal options, rather than all of them?
Comment #4
thegreatone CreditAttribution: thegreatone commentedI had another situation for this problem. Editing a node seems to be fine. I got this error when creating a new node. When I first get in the form and select a value in the trigger field, it works fine and the limited field loads the proper values. If I change the value of the trigger field again, the error shows up and the values of the limited field does not reload to match the trigger field.
Comment #5
joachim CreditAttribution: joachim commentedDoes the patch fix your situation as well?
Comment #6
thegreatone CreditAttribution: thegreatone commentedwell...again it all depends on what version of the dev code this was applied, but on the current one it didn't help.
Comment #7
joachim CreditAttribution: joachim commented> again it all depends on what version of the dev code this was applied
Always try patches against the current HEAD from git. That's where it will be committed if it works. There's no point testing a patch against older code -- if it only works there, then it needs a reroll.
Comment #8
thegreatone CreditAttribution: thegreatone commentedwas trying on the current dev so..