Bugzilla – Attachment 155919 Details for
Bug 34748
Wrong column name basket_number in table settings for basket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34748: Fix column name in columns configuration for basket table
Bug-34748-Fix-column-name-in-columns-configuration.patch (text/plain), 2.13 KB, created by
David Nind
on 2023-09-20 01:04:46 UTC
(
hide
)
Description:
Bug 34748: Fix column name in columns configuration for basket table
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-09-20 01:04:46 UTC
Size:
2.13 KB
patch
obsolete
>From 0ec49af531bd8e141325ef6531463dc43ee52d78 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Tue, 19 Sep 2023 21:33:00 +0000 >Subject: [PATCH] Bug 34748: Fix column name in columns configuration for > basket table > >The first column was named basket_number, but it's actually the >order_line. > >To test: >* Edit column configuration for acquisition > basket >* Make sure to set at least one checkbox for 'basket_number' >* Apply patch, run database update >* Verify that the first column is now 'order_line', but your > settings have been preserved > >Signed-off-by: David Nind <david@davidnind.com> >--- > admin/columns_settings.yml | 2 +- > .../bug_34748_column_config_error.pl | 17 +++++++++++++++++ > 2 files changed, 18 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_34748_column_config_error.pl > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 90fb535472..e528b76298 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -118,7 +118,7 @@ modules: > default_sort_order: 0 > columns: > - >- columnname: basket_number >+ columnname: order_line > - > columnname: order_information > - >diff --git a/installer/data/mysql/atomicupdate/bug_34748_column_config_error.pl b/installer/data/mysql/atomicupdate/bug_34748_column_config_error.pl >new file mode 100755 >index 0000000000..6d855f43d5 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_34748_column_config_error.pl >@@ -0,0 +1,17 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "34748", >+ description => "Fix column name in column configuration for basket summary", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do( >+ q{UPDATE columns_settings SET columnname="order_line" WHERE columnname="basket_number" AND module="acqui" AND page="basket" and tablename="orders"} >+ ); >+ >+ say $out "Update column configuration with new columnname order_line"; >+ }, >+}; >-- >2.30.2
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 34748
:
155916
|
155919
|
156041