From ff4b63d5c5d03249b7abcebf50d77174f78d40e2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 27 Feb 2024 15:34:40 +0100 Subject: [PATCH] Bug 34478: Add cud to updatestructure Signed-off-by: Jonathan Druart --- C4/Auth.pm | 2 +- installer/install.pl | 2 +- .../prog/en/modules/installer/step3.tt | 16 ++++++++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 9c541d8af8..2f90868b9e 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -776,7 +776,7 @@ sub _version_check { my $warning = "Database update needed, redirecting to %s. Database is $version and Koha is $kohaversion"; if ( $type ne 'opac' ) { warn sprintf( $warning, 'Installer' ); - print $query->redirect("/cgi-bin/koha/installer/install.pl?step=1&op=updatestructure"); + print $query->redirect("/cgi-bin/koha/installer/install.pl"); } else { warn sprintf( "OPAC: " . $warning, 'maintenance' ); print $query->redirect("/cgi-bin/koha/maintenance.pl"); diff --git a/installer/install.pl b/installer/install.pl index 3c2ee27b2a..d50f15aec6 100755 --- a/installer/install.pl +++ b/installer/install.pl @@ -372,7 +372,7 @@ elsif ( $step && $step == 3 ) { "error" => $error, ); } - elsif ( $op eq 'updatestructure' ) { + elsif ( $op eq 'cud-updatestructure' ) { # # Not 1st install, the only sub-step : update database # diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt index 917490a685..8a3e5b4b83 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt @@ -326,7 +326,12 @@ [% IF ( upgrading ) %]

Web installer › Update database

We are upgrading from Koha [% dbversion | html %] to [% kohaversion | html %]

-

Update your database

+
+ [% INCLUDE 'csrf-token.inc' %] + + +

+
[% ELSE %]

Web installer › Install basic configuration settings

@@ -453,7 +458,14 @@

Everything went okay. Update done.

Continue to log in to Koha

[% ELSE %] -

Try again

+

+

+ [% INCLUDE 'csrf-token.inc' %] + + +

+
+

[% END %] [% END # / IF updatestructure %] -- 2.39.5