projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35cf30e
)
Bug 5372 (v2) Existing value can be replace by default value
author
Frédéric Demians
<f.demians@tamil.fr>
Sun, 7 Nov 2010 13:33:36 +0000
(14:33 +0100)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Sun, 7 Nov 2010 20:24:22 +0000
(09:24 +1300)
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>
cataloguing/addbiblio.pl
patch
|
blob
|
history
diff --git
a/cataloguing/addbiblio.pl
b/cataloguing/addbiblio.pl
index
2cd6e73
..
85c0566
100755
(executable)
--- a/
cataloguing/addbiblio.pl
+++ b/
cataloguing/addbiblio.pl
@@
-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