Bugzilla – Attachment 152248 Details for
Bug 33966
"Update and run SQL" for non-English templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33966: (bug 23824 follow-up) Fix submit buttons for translated templates
Bug-33966-bug-23824-follow-up-Fix-submit-buttons-f.patch (text/plain), 2.49 KB, created by
Jonathan Druart
on 2023-06-09 13:35:56 UTC
(
hide
)
Description:
Bug 33966: (bug 23824 follow-up) Fix submit buttons for translated templates
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-06-09 13:35:56 UTC
Size:
2.49 KB
patch
obsolete
>From fb8f045b7c3642615a64f701bf831d0de1940da6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Jun 2023 15:35:41 +0200 >Subject: [PATCH] Bug 33966: (bug 23824 follow-up) Fix submit buttons for > translated templates > >--- > .../prog/en/modules/reports/guided_reports_start.tt | 4 ++-- > reports/guided_reports.pl | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index cbc7326debf..62df2bc7e2e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -1360,8 +1360,8 @@ > </fieldset> > > <fieldset class="action"> >- <input type="submit" name="phase" class="btn btn-primary" value="Update SQL" /> >- <input type="submit" name="phase" class="btn btn-primary" value="Update and run SQL" /> >+ <button class="btn btn-primary" type="submit" name="phase" value="update_sql">Update SQL</button> >+ <button class="btn btn-default" type="submit" name="phase" value="update_and_run_sql">Update and run SQL</button> > <a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved" class="cancel">Cancel</a> > </fieldset> > </form> >diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl >index fb51ab27fa7..46792bf88c3 100755 >--- a/reports/guided_reports.pl >+++ b/reports/guided_reports.pl >@@ -209,7 +209,7 @@ elsif ( $phase eq 'Edit SQL'){ > ); > } > >-elsif ( $phase eq 'Update SQL' || $phase eq 'Update and run SQL' ){ >+elsif ( $phase eq 'update_sql' || $phase eq 'update_and_run_sql' ){ > my $id = $input->param('id'); > my $sql = $input->param('sql'); > my $reportname = $input->param('reportname'); >@@ -301,7 +301,7 @@ elsif ( $phase eq 'Update SQL' || $phase eq 'Update and run SQL' ){ > cache_expiry_units => $cache_expiry_units, > ); > } >- if ( $phase eq 'Update and run SQL' ) { >+ if ( $phase eq 'update_and_run_sql' ) { > print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?reports=$id&phase=Run%20this%20report"); > } > } >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33966
:
152248
|
152267
|
152274