From 371aac37532113dd6ae3939efc0b5cd522f8a485 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 8 Dec 2025 18:57:30 +0000 Subject: [PATCH] Bug 41405: Treat blank value as unset --- .../prog/en/modules/admin/categories.tt | 46 ++++++++++++------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt index e91ba21feb3..dbe1558941a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt @@ -484,27 +484,39 @@
  • - + [% IF category.noissuescharge != '' %] + + [% ELSE %] + + [% END %] [%- SET pref_noissuescharge_link = 'noissuescharge' -%]
    If set, this will override the global value set in the [%- pref_noissuescharge_link | $raw | $KohaSpan -%] system preference.
  • - + [% IF category.noissueschargeguarantees != '' %] + + [% ELSE %] + + [% END %] [%- SET pref_NoIssuesChargeGuarantees_link = 'NoIssuesChargeGuarantees' -%]
    If set, this will override the global value set in the [%- pref_NoIssuesChargeGuarantees_link | $raw | $KohaSpan -%] system preference.
  • - + [% IF category.noissueschargeguarantees != '' %] + + [% ELSE %] + + [% END %] [%- SET pref_NoIssuesChargeGuarantorsWithGuarantees_link = 'NoIssuesChargeGuarantorsWithGuarantees' -%]
    If set, this will override the global value set in the [%- pref_NoIssuesChargeGuarantorsWithGuarantees_link | $raw | $KohaSpan -%] system preference.
  • @@ -830,20 +842,20 @@ No [% END %] - [% IF (category.noissuescharge) %] + [% IF (category.noissuescharge != '') %] [% category.noissuescharge | $Price %] [% ELSE %] - [% 0.00 | $Price %] + Unset [% END %] - [% IF (category.noissueschargeguarantees) %] + [% IF (category.noissueschargeguarantees != '') %] [% category.noissueschargeguarantees | $Price %] [% ELSE %] - [% 0.00 | $Price %] + Unset [% END %] - [% IF (category.noissueschargeguarantorswithguarantees) %] + [% IF (category.noissueschargeguarantorswithguarantees != '') %] [% category.noissueschargeguarantorswithguarantees | $Price %] [% ELSE %] - [% 0.00 | $Price %] + Unset [% END %] [% IF category.enforce_expiry_notice %]Yes[% ELSE %]No[% END %] -- 2.39.5