View | Details | Raw Unified | Return to bug 17375
Collapse All | Expand All

(-)a/members/member.pl (-1 / +1 lines)
Lines 65-71 if ( $quicksearch and $searchmember ) { Link Here
65
my $searchfieldstype = $input->param('searchfieldstype') || 'standard';
65
my $searchfieldstype = $input->param('searchfieldstype') || 'standard';
66
66
67
if ( $searchfieldstype eq "dateofbirth" ) {
67
if ( $searchfieldstype eq "dateofbirth" ) {
68
    $searchmember = output_pref({dt => dt_from_string($searchmember), dateformat => 'iso', dateonly => 1});
68
    $searchmember = eval { output_pref({dt => dt_from_string($searchmember), dateformat => 'iso', dateonly => 1}); };
69
}
69
}
70
70
71
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
71
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
(-)a/svc/members/search (-2 / +5 lines)
Lines 48-54 my $has_permission = $input->param('has_permission'); Link Here
48
my $selection_type = $input->param('selection_type');
48
my $selection_type = $input->param('selection_type');
49
49
50
if ( $searchfieldstype eq "dateofbirth" ) {
50
if ( $searchfieldstype eq "dateofbirth" ) {
51
    $searchmember = output_pref({dt => dt_from_string($searchmember), dateformat => 'iso', dateonly => 1});
51
    $searchmember = eval { output_pref({dt => dt_from_string($searchmember), dateformat => 'iso', dateonly => 1}); };
52
    # Prevent display of all dates if date was not valid
53
    unless ($searchmember ) {
54
        $searchmember = "1000-01-01";
55
    }
52
}
56
}
53
57
54
# variable information for DataTables (id)
58
# variable information for DataTables (id)
55
- 

Return to bug 17375