Bug 20074: (follow-up) Remove another remainder of biblio hidden logic
Script authorities.pl still contains a module 2 calculation on the hidden attribute, although it is used as a boolean. Since -5 mod 2 == 1, it does no harm, but we better remove it. Test plan: Edit and save an authority. Verify that everything still works as expected. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
08aba08a92
commit
1b25d81dc6
|
|
@ -187,7 +187,7 @@ sub create_input {
|
|||
}
|
||||
|
||||
$subfield_data{visibility} = "display:none;"
|
||||
if ( ($tagslib->{$tag}->{$subfield}->{hidden} % 2 == 1) and $value ne ''
|
||||
if( $tagslib->{$tag}->{$subfield}->{hidden} and $value ne ''
|
||||
or ($value eq '' and !$tagslib->{$tag}->{$subfield}->{mandatory})
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue