From 84962355961fc4e558d28764e7abbbb0453018d9 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 11 Nov 2024 13:46:50 +0000 Subject: [PATCH] Bug 33766: DBRev 24.06.00.060 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- ...ix_ambiguous_form-field_in_opac-auth.tt.pl | 18 ------------------ installer/data/mysql/db_revs/240600060.pl | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 19 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_33766-a11y_fix_ambiguous_form-field_in_opac-auth.tt.pl create mode 100755 installer/data/mysql/db_revs/240600060.pl diff --git a/Koha.pm b/Koha.pm index 4269bb6805..bafcddd6db 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "24.06.00.059"; +$VERSION = "24.06.00.060"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_33766-a11y_fix_ambiguous_form-field_in_opac-auth.tt.pl b/installer/data/mysql/atomicupdate/bug_33766-a11y_fix_ambiguous_form-field_in_opac-auth.tt.pl deleted file mode 100755 index 290103bd97..0000000000 --- a/installer/data/mysql/atomicupdate/bug_33766-a11y_fix_ambiguous_form-field_in_opac-auth.tt.pl +++ /dev/null @@ -1,18 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "33766", - description => "Add syspref to determine text content of userid input field's label.", - up => sub { - my ($args) = @_; - my ( $dbh, $out ) = @$args{qw(dbh out)}; - - # Do you stuffs here - $dbh->do( - q{INSERT IGNORE INTO systempreferences (variable,value) VALUES ('OPACLoginLabelTextContent','cardnumber') } - ); - - # sysprefs - say $out "Added new system preference 'OPACLoginLabelTextContent'"; - }, -}; diff --git a/installer/data/mysql/db_revs/240600060.pl b/installer/data/mysql/db_revs/240600060.pl new file mode 100755 index 0000000000..e13a08538a --- /dev/null +++ b/installer/data/mysql/db_revs/240600060.pl @@ -0,0 +1,19 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); + +return { + bug_number => "33766", + description => "Add system preference to determine label of userid input on login form", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + # Do you stuffs here + $dbh->do( + q{INSERT IGNORE INTO systempreferences (variable,value) VALUES ('OPACLoginLabelTextContent','cardnumberorusername') } + ); + + # sysprefs + say_success( $out, "Added new system preference 'OPACLoginLabelTextContent'" ); + }, +};