Bug 34478: Manual fix - problem_reports
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
43b5c9da5d
commit
e513541238
|
|
@ -58,9 +58,9 @@
|
|||
<form id="mark_selected" method="post" action="/cgi-bin/koha/tools/problem-reports.pl">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<div id="toolbar" class="btn-toolbar">
|
||||
<button type="submit" class="btn btn-default markviewed" name="mark_selected-viewed" value="viewed" disabled="disabled"><i class="fa-solid fa-eye"></i> Mark viewed</button>
|
||||
<button type="submit" class="btn btn-default markclosed" name="mark_selected-closed" value="closed" disabled="disabled"><i class="fa fa-times-circle"></i> Mark closed</button>
|
||||
<button type="submit" class="btn btn-default marknew" name="mark_selected-new" value="new" disabled="disabled"><i class="fa fa-star"></i> Mark new</button>
|
||||
<button type="submit" class="btn btn-default markviewed" name="op" value="cud-mark_selected-viewed" disabled="disabled"><i class="fa-solid fa-eye"></i> Mark viewed</button>
|
||||
<button type="submit" class="btn btn-default markclosed" name="op" value="cud-mark_selected-closed" disabled="disabled"><i class="fa fa-times-circle"></i> Mark closed</button>
|
||||
<button type="submit" class="btn btn-default marknew" name="op" value="cud-mark_selected-new" disabled="disabled"><i class="fa fa-star"></i> Mark new</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-toolbar selections-toolbar">
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ if ( $op eq 'cud-addreport' ) {
|
|||
}
|
||||
);
|
||||
|
||||
my $transport = 'cud-email';
|
||||
my $transport = 'email';
|
||||
my $reply_address = $patron->email || $patron->emailpro || $patron->B_email;
|
||||
|
||||
if ( $recipient eq 'library' and defined($library->inbound_email_address) and $library->inbound_email_address ne C4::Context->preference('KohaAdminEmailAddress') ) {
|
||||
|
|
|
|||
|
|
@ -37,26 +37,22 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
|
||||
my $action;
|
||||
foreach (qw( viewed closed new )) {
|
||||
$action = $_ if ( $query->param("mark_selected-$_") );
|
||||
}
|
||||
$action ||= 'none';
|
||||
my $action = $query->param("op") || 'none';
|
||||
|
||||
my @report_ids = $query->multi_param('report_ids');
|
||||
|
||||
if ( $action eq 'viewed' ) {
|
||||
if ( $action eq 'cud-mark_selected-viewed' ) {
|
||||
foreach my $report_id ( @report_ids ) {
|
||||
my $report = Koha::ProblemReports->find($report_id);
|
||||
$report->set({ status => 'Viewed' })->store;
|
||||
}
|
||||
} elsif ( $action eq 'closed' ) {
|
||||
} elsif ( $action eq 'cud-mark_selected-closed' ) {
|
||||
foreach my $report_id ( @report_ids ) {
|
||||
my $report = Koha::ProblemReports->find($report_id);
|
||||
$report->set({ status => 'Closed' })->store;
|
||||
}
|
||||
|
||||
} elsif ( $action eq 'new' ) {
|
||||
} elsif ( $action eq 'cud-mark_selected-new' ) {
|
||||
foreach my $report_id ( @report_ids ) {
|
||||
my $report = Koha::ProblemReports->find($report_id);
|
||||
$report->set({ status => 'New' })->store;
|
||||
|
|
|
|||
Loading…
Reference in New Issue