In that case it's equal to 0 and we need to adjust the test condition.
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
next unless $table_id =~ m|^([^#]*)#(.*)$|;
my $default_display_length = $input->param( $table_id . '_default_display_length' );
my $default_sort_order = $input->param( $table_id . '_default_sort_order' );
- if ( $default_display_length && $default_sort_order ) {
+ if ( defined $default_display_length && $default_display_length ne ""
+ && defined $default_sort_order && $default_sort_order ne "" ) {
C4::Utils::DataTables::TablesSettings::update_table_settings(
{
module => $module,