Bug 6475 - Edit it's not possible in subfield "0" in MARC framework
When trying to modify the subfield "0" on a field in the
MARC subfield structure admin -> Tag xxx Subfield Constraints,
the boolean condition on liblibrarian fails for the initial "0" value.
Modified condition to allow the value "0"
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 042f89e939)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
5d529084c3
commit
35eb4ced52
|
|
@ -426,7 +426,7 @@ elsif ( $op eq 'add_validate' ) {
|
|||
my $link = $link[$i];
|
||||
my $defaultvalue = $defaultvalue[$i];
|
||||
|
||||
if ($liblibrarian) {
|
||||
if (defined($liblibrarian) && $liblibrarian ne "") {
|
||||
unless ( C4::Context->config('demo') eq 1 ) {
|
||||
if (marc_subfield_structure_exists($tagfield, $tagsubfield, $frameworkcode)) {
|
||||
$sth_update->execute(
|
||||
|
|
|
|||
Loading…
Reference in New Issue