Bug 5372 (v2) Existing value can be replace by default value
The way an existing value was tested was wrong. 0 is a valid value but a
false value for Perl.
=> replace privious proposal.
[3.2] Should also apply.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 07cfc5d69c)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
12755020c6
commit
0aee2dca9e
|
|
@ -299,7 +299,7 @@ sub create_input {
|
|||
}
|
||||
|
||||
# if there is no value provided but a default value in parameters, get it
|
||||
unless ($value) {
|
||||
if ( $value eq '' ) {
|
||||
$value = $tagslib->{$tag}->{$subfield}->{defaultvalue};
|
||||
|
||||
# get today date & replace YYYY, MM, DD if provided in the default value
|
||||
|
|
|
|||
Loading…
Reference in New Issue