[Koha-bugs] [Bug 16007] Correction of 'Remove columns branchcode, categorytype from table overduerules_transport_types'

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 21 19:36:27 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16007

--- Comment #8 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 49401
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=49401
Bug 16007: Adding back column 'letternumber' to table
'overduerules_transport_types'

Review of attachment 49401:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=16007&attachment=49401)
-----------------------------------------------------------------

:::
installer/data/mysql/atomicupdate/Bug_16007_adding_column_letternumber_back_into_table_overduerules_transport_types.perl
@@ +23,5 @@
> +        {
> +            $letternumberExists = 1;
> +            last;
> +        }
> +    }

While this would work. Why not use grep?
my @letternumber = grep { $_ eq 'letternumber' } @data;
if (@letternumber) { print "EXISTS!\n"; } else { print "DIDN'T FIND!\n"; }
http://perldoc.perl.org/functions/grep.html

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list