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.
The default value should only be used when there is no current value in the feed.
Comment | File | Size | Author |
---|---|---|---|
0002-Default-should-only-be-used-if-no-value-exists.patch | 814 bytes | gordon | |
Comments
Comment #1
mradcliffeSolution works for me on 7.x-1.0-beta4. I guess this probably needs a test as well.
Comment #3
GaborTorok CreditAttribution: GaborTorok commentedThis issue may be a duplicate of this other issue: #1447920: Default value plugin: Option to set the value only when field is empty.
The other issue also has a patch for this problem, and has an additional "Only if empty checkbox" on the settings page.
Comment #4
twistor CreditAttribution: twistor commentedYup, is a dupe of #1447920: Default value plugin: Option to set the value only when field is empty.
Comment #5
GuyPaddock CreditAttribution: GuyPaddock commentedConsidering that the default value plug-in is called the "Default value plug-in", and default implies that it's the fall-back value if the field is empty, I would expect that this patch is the correct approach.
The checkbox for "only if empty" is superfluous unless we're going to rename the plug-in to "Set value" or something that implies it always sets the value (but has the option to do it only if empty).
Also... the other issue doesn't yet have a usable patch, from the comment history. That issue points here for a useful patch.
Comment #6
twistor CreditAttribution: twistor commentedYup. We're going to have to change the name of the plugin. Changing the existing behavior is a non-starter. We can't just change the behavior for existing installs.