From 775ff5f761174e1338c27177100ac9ce8b3aa7f9 Mon Sep 17 00:00:00 2001 From: Milan Date: Sun, 23 Feb 2020 10:29:39 +0100 Subject: [PATCH] series.pm: search for empty name or title empty name or title search is enabled now to support series without title --- lib/calcms/series.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/calcms/series.pm b/lib/calcms/series.pm index f118960..31620fe 100644 --- a/lib/calcms/series.pm +++ b/lib/calcms/series.pm @@ -54,12 +54,12 @@ sub get ($$) { push @bind_values, $condition->{series_id}; } - if ( ( defined $condition->{series_name} ) && ( $condition->{series_name} ne '' ) ) { + if ( defined $condition->{series_name} ) { push @conditions, 'series_name=?'; push @bind_values, $condition->{series_name}; } - if ( ( defined $condition->{title} ) && ( $condition->{title} ne '' ) ) { + if ( defined $condition->{title} ) { push @conditions, 'title=?'; push @bind_values, $condition->{title}; }