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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (+6 lines)
Lines 55-60 Link Here
55
    </div>
55
    </div>
56
[% END %]
56
[% END %]
57
57
58
[% IF ( error_delitem ) %]
59
    <div class="dialog alert">
60
        <p><strong>Error</strong>: one or more associated items could not be deleted at this time.</p>
61
    </div>
62
[% END %]
63
58
[% IF ( subscriptions ) %]
64
[% IF ( subscriptions ) %]
59
<table>
65
<table>
60
[% IF ( subscriptions.size == 1 ) %]
66
[% IF ( subscriptions.size == 1 ) %]
(-)a/serials/serials-collection.pl (-4 / +4 lines)
Lines 124-137 if($op eq 'delete_confirm'){ Link Here
124
        foreach my $serialid (@serialsid){
124
        foreach my $serialid (@serialsid){
125
            my @itemnumbers = Koha::Serial::Items->search({serialid => $serialid})->get_column('itemnumber');
125
            my @itemnumbers = Koha::Serial::Items->search({serialid => $serialid})->get_column('itemnumber');
126
            foreach my $itemnumber (@itemnumbers){
126
            foreach my $itemnumber (@itemnumbers){
127
                C4::Items::DelItem({'biblionumber' => $biblionumber, 'itemnumber' => $itemnumber});
127
                my $delcheck = C4::Items::DelItemCheck($biblionumber, $itemnumber);
128
                $template->param(error_delitem => 1) if $delcheck != 1;
128
            }
129
            }
129
        }
130
        }
130
    }
131
    }
131
    for my $serialid (@serialsid){
132
    for my $serialid (@serialsid){
132
        ModSerialStatus($serialid,"","","","",6);
133
        my $serial = Koha::Serials->find($serialid);
134
        ModSerialStatus($serialid, $serial->serialseq, $serial->planneddate, $serial->publisheddate, $serial->publisheddatetext, 6, "");
133
    }
135
    }
134
    print $query->redirect('/cgi-bin/koha/serials/serials-collection.pl?subscriptionid='.$subscriptionid);
135
}
136
}
136
137
137
my $subscriptioncount;
138
my $subscriptioncount;
138
- 

Return to bug 17674