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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (+3 lines)
Lines 1546-1551 Link Here
1546
                    return true;
1546
                    return true;
1547
                });
1547
                });
1548
            });
1548
            });
1549
            [% IF manageddate_from %]
1550
                $("fieldset.suggestion_information").toggle();
1551
            [% END %]
1549
        </script>
1552
        </script>
1550
    [% END %]
1553
    [% END %]
1551
    [% IF op == 'save' %]
1554
    [% IF op == 'save' %]
(-)a/suggestion/suggestion.pl (-1 / +4 lines)
Lines 451-456 if ( $op eq 'else' ) { Link Here
451
            my $from_dt = $from && eval { dt_from_string($from) };
451
            my $from_dt = $from && eval { dt_from_string($from) };
452
            my $to_dt   = $to   && eval { dt_from_string($to) };
452
            my $to_dt   = $to   && eval { dt_from_string($to) };
453
453
454
            if ( ( my $from_pref = C4::Context->preference('SuggestionsDefaultManagedFrom') ) && $field eq 'manageddate' ) {
455
                $from_dt  ||= dt_from_string()->subtract( days => $from_pref );
456
                $template->param( "${field}_from" => $from_dt );
457
            }
454
            if ( $from_dt || $to_dt ) {
458
            if ( $from_dt || $to_dt ) {
455
                my $dtf = Koha::Database->new->schema->storage->datetime_parser;
459
                my $dtf = Koha::Database->new->schema->storage->datetime_parser;
456
                if ( $from_dt && $to_dt ) {
460
                if ( $from_dt && $to_dt ) {
457
- 

Return to bug 39239