diff --git a/installer/data/mysql/atomicupdate/bug_18930.perl b/installer/data/mysql/atomicupdate/bug_18930.perl index 3426d994fa..99533dec2d 100644 --- a/installer/data/mysql/atomicupdate/bug_18930.perl +++ b/installer/data/mysql/atomicupdate/bug_18930.perl @@ -3,7 +3,7 @@ if( CheckVersion( $DBversion ) ) { if ( column_exists( 'refund_lost_item_fee_rules', 'refund' ) ) { $dbh->do(" INSERT INTO circulation_rules ( categorycode, branchcode, itemtype, rule_name, rule_value ) - SELECT NULL, branchcode, NULL, 'refund', refund + SELECT NULL, IF(branchcode='*', NULL, branchcode), NULL, 'refund', refund FROM refund_lost_item_fee_rules "); $dbh->do("DROP TABLE refund_lost_item_fee_rules");