Closed (duplicate)
Project:
Feeds Tamper
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Dec 2012 at 02:28 UTC
Updated:
24 Nov 2014 at 21:49 UTC
Jump to comment: Most recent
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 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 commentedYup, is a dupe of #1447920: Default value plugin: Option to set the value only when field is empty.
Comment #5
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 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.