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.
Problem/Motivation
If a flag is disabled, and then edited, upon saving, the flag is re-enabled.
Proposed resolution
Leave the flag in its existing state when saving.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 2818077-02.patch | 1.07 KB | jhedstrom |
Comments
Comment #2
jhedstromPretty straightforward fix. This moves the enable logic just to the add form.
Comment #3
martin107 CreditAttribution: martin107 as a volunteer commentedThis makes sense to me,
It is one of those obvious bugs - that makes me smile- once you see it.
My only comments get pushed to a side issue ... we have duplicate definitions in the FlagInterface
#2818353: Remove redundant enable() and disable() from FlagInterface
Comment #5
joachim CreditAttribution: joachim as a volunteer commentedCommitted! Thanks for the patch and review.
Comment #6
BerdirThis could actually be done an API level too, simply by setting $this->status to TRUE by default, it will be overriden by the actual value when an existing entity is loaded.
Comment #7
martin107 CreditAttribution: martin107 as a volunteer commentedThat would be better.