View | Details | Raw Unified | Return to bug 3722
Collapse All | Expand All

(-)a/admin/branches.pl (-2 / +10 lines)
Lines 131-138 elsif ( $op eq 'delete' ) { Link Here
131
    $sthitems->execute( $branchcode, $branchcode );
131
    $sthitems->execute( $branchcode, $branchcode );
132
    $sthborrowers->execute( $branchcode );
132
    $sthborrowers->execute( $branchcode );
133
    my ($totalitems)     = $sthitems->fetchrow_array;
133
    my ($totalitems)     = $sthitems->fetchrow_array;
134
    my ($totalborrowers) = $sthitems->fetchrow_array;
134
    my ($totalborrowers) = $sthborrowers->fetchrow_array;
135
    if ($totalitems or $totalborrowers) {
135
    if ($totalitems && !$totalborrowers) {
136
        $template->param( else => 1 );
137
        default("MESSAGE10", $template);
138
    }
139
    elsif (!$totalitems && $totalborrowers){
140
        $template->param( else => 1 );
141
        default("MESSAGE11", $template);
142
    }
143
    elsif ($totalitems && $totalborrowers){
136
        $template->param( else => 1 );
144
        $template->param( else => 1 );
137
        default("MESSAGE7", $template);
145
        default("MESSAGE7", $template);
138
    }
146
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tmpl (-2 / +3 lines)
Lines 156-164 Link Here
156
    <!-- TMPL_IF name="MESSAGE4" --><div class="dialog message">Library category added</div><!-- /TMPL_IF -->
156
    <!-- TMPL_IF name="MESSAGE4" --><div class="dialog message">Library category added</div><!-- /TMPL_IF -->
157
    <!-- TMPL_IF name="MESSAGE5" --><div class="dialog message">Library category modified</div><!-- /TMPL_IF -->
157
    <!-- TMPL_IF name="MESSAGE5" --><div class="dialog message">Library category modified</div><!-- /TMPL_IF -->
158
    <!-- TMPL_IF name="MESSAGE6" --><div class="dialog message">Library category deleted</div><!-- /TMPL_IF -->
158
    <!-- TMPL_IF name="MESSAGE6" --><div class="dialog message">Library category deleted</div><!-- /TMPL_IF -->
159
    <!-- TMPL_IF name="MESSAGE7" --><div class="dialog message">Library cannot be deleted because there are patrons or items using that library</div><!-- /TMPL_IF -->
159
    <!-- TMPL_IF name="MESSAGE7" --><div class="dialog message">Library cannot be deleted because there are patrons and items using that library</div><!-- /TMPL_IF -->
160
    <!-- TMPL_IF name="MESSAGE8" --><div class="dialog message">Category cannot be deleted because there are libraries using that category</div><!-- /TMPL_IF -->
160
    <!-- TMPL_IF name="MESSAGE8" --><div class="dialog message">Category cannot be deleted because there are libraries using that category</div><!-- /TMPL_IF -->
161
    <!-- TMPL_IF name="MESSAGE9" --><div class="dialog message">Category cannot be added, categorycode already exists</div><!-- /TMPL_IF -->
161
    <!-- TMPL_IF name="MESSAGE9" --><div class="dialog message">Category cannot be added, categorycode already exists</div><!-- /TMPL_IF -->
162
    <!-- TMPL_IF name="MESSAGE10" --><div class="dialog message">Library cannot be deleted because there are items held by that library</div><!-- /TMPL_IF -->
163
    <!-- TMPL_IF name="MESSAGE11" --><div class="dialog message">Library cannot be deleted because there are patrons registered at that library</div><!-- /TMPL_IF -->
162
<!-- TMPL_IF NAME="branches" -->
164
<!-- TMPL_IF NAME="branches" -->
163
    <table id="branchest">
165
    <table id="branchest">
164
<thead><tr>
166
<thead><tr>
165
- 

Return to bug 3722