diff --git a/admin/branches.pl b/admin/branches.pl index 08a73f6571..059ff599de 100755 --- a/admin/branches.pl +++ b/admin/branches.pl @@ -124,7 +124,7 @@ if ( $op eq 'add_form' ) { branchcode => $branchcode, ( map { - $_ eq 'pickup_location' # Don't fallback to undef/NULL, default is 1 in DB + /^(pickup_location|public)$/ # Don't fallback to undef for those fields ? ( $_ => scalar $input->param($_) ) : ( $_ => scalar $input->param($_) || undef ) } @fields