https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21605
Marcel de Rooy <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |[email protected] --- Comment #7 from Marcel de Rooy <[email protected]> --- + $fields->{$capability} = defined $input->param($capability); + if ($fields->{$capability} != 1) { + $fields->{$capability} = 0; Somehow I do not understand. Say I pass a 0 in the field. Than $fields->{$capability} = 1 since 0 is defined. Say I pass 'a'. Again = 1. Only undef is not defined and will put empty string into $fields converted to 0. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
