Bug 14949: (followup) Fix regression with hard due date
This patch fixes the regresseion as described in comment #3 To test: - Go on smart-rules.pl and edit a line. Do not define a Hard due date, save. The value is "None defined". - Edit the line, do not change anything and save. The value should be "None defined" - Edit the line, define a hard due date, save. The date should display as expected. - Edit the line agein, remove the hard due date, save. The value should be "None defined" Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
52c646b3ea
commit
4750d321ec
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ elsif ($op eq 'add') {
|
|||
$maxonsiteissueqty = undef if $maxonsiteissueqty !~ /^\d+/;
|
||||
my $issuelength = $input->param('issuelength');
|
||||
my $lengthunit = $input->param('lengthunit');
|
||||
my $hardduedate = eval { dt_from_string( $input->param('hardduedate') ) };
|
||||
my $hardduedate = $input->param('hardduedate');
|
||||
$hardduedate = eval { dt_from_string( $input->param('hardduedate') ) } if ( $hardduedate );
|
||||
$hardduedate = output_pref( { dt => $hardduedate, dateonly => 1, dateformat => 'iso' } ) if ( $hardduedate );
|
||||
my $hardduedatecompare = $input->param('hardduedatecompare');
|
||||
my $rentaldiscount = $input->param('rentaldiscount');
|
||||
|
|
Loading…
Reference in a new issue