Bugzilla – Attachment 162800 Details for
Bug 33268
Overlay rules don't work correctly when source is set to *
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33268: (QA follow-up): tidy up code
Bug-33268-QA-follow-up-tidy-up-code.patch (text/plain), 1.74 KB, created by
Victor Grousset/tuxayo
on 2024-03-05 22:33:38 UTC
(
hide
)
Description:
Bug 33268: (QA follow-up): tidy up code
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-03-05 22:33:38 UTC
Size:
1.74 KB
patch
obsolete
>From fc2600fafd1313d4622662cb42760e6257fde1f7 Mon Sep 17 00:00:00 2001 >From: Victor Grousset/tuxayo <victor@tuxayo.net> >Date: Tue, 5 Mar 2024 23:29:25 +0100 >Subject: [PATCH] Bug 33268: (QA follow-up): tidy up code > >--- > ...dd_rules_to_preserve_current_overlay_rules_behavior.pl | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_33268-add_rules_to_preserve_current_overlay_rules_behavior.pl b/installer/data/mysql/atomicupdate/bug_33268-add_rules_to_preserve_current_overlay_rules_behavior.pl >index 88d4a9e334..b755944958 100755 >--- a/installer/data/mysql/atomicupdate/bug_33268-add_rules_to_preserve_current_overlay_rules_behavior.pl >+++ b/installer/data/mysql/atomicupdate/bug_33268-add_rules_to_preserve_current_overlay_rules_behavior.pl >@@ -18,14 +18,14 @@ return { > `module` IN (SELECT `module` FROM `marc_overlay_rules` WHERE `filter` = "*") AND > `filter` NOT IN (SELECT `filter` FROM `marc_overlay_rules` WHERE `tag` = "*") > }; >- my @results = $dbh->selectall_array( $query ); >- for my $result ( @results ) { >- my ($module, $filter) = @{$result}; >+ my @results = $dbh->selectall_array($query); >+ for my $result (@results) { >+ my ( $module, $filter ) = @{$result}; > $query = q{ > INSERT INTO `marc_overlay_rules`(`tag`, `module`, `filter`, `add`, `append`, `remove`, `delete`) > VALUES(?, ?, ?, ?, ?, ?, ?) > }; >- $dbh->do($query, undef, '*', $module, $filter, 1, 1, 1, 1); >+ $dbh->do( $query, undef, '*', $module, $filter, 1, 1, 1, 1 ); > } > say $out "Added record overlay rules to preserve current behavior"; > }, >-- >2.44.0
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 33268
:
158956
|
159004
|
159058
|
159160
|
159161
|
159518
|
159519
|
160017
|
160018
|
162764
|
162766
|
162767
|
162785
|
162786
|
162796
|
162797
|
162798
|
162799
|
162800
|
162801
|
162802
|
162803
|
162804
|
162805
|
162936
|
162937
|
162938
|
162939
|
162940