em is better for accessibility
We should set the field to 0 when it was previously unset
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
[% IF updated_exclude_from_local_holds_priority.defined %]
<div class="dialog message">
- <i>Exclude from local holds priority</i> updated to
+ <em>Exclude from local holds priority</em> updated to
[% IF updated_exclude_from_local_holds_priority %]
- <i>Yes</i>
+ <em>Yes</em>
[% ELSE %]
- <i>No</i>
+ <em>No</em>
[% END %]
</div>
[% END %]
else {
my $modified_holds_priority = 0;
if (defined $exclude_from_local_holds_priority) {
- if($item->exclude_from_local_holds_priority != $exclude_from_local_holds_priority) {
+ if(!defined $item->exclude_from_local_holds_priority || $item->exclude_from_local_holds_priority != $exclude_from_local_holds_priority) {
$item->exclude_from_local_holds_priority($exclude_from_local_holds_priority)->store;
$modified_holds_priority = 1;
}