Bug 14735: Save cache_expiry on modifying a report
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 10 Nov 2015 15:17:12 +0000 (15:17 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 10 Nov 2015 18:20:48 +0000 (15:20 -0300)
The cache_expiry is not saved when updating a SQL report.

Test plan:
0/ Enable memcached
1/ Create a sql report
2/ Edit it and change the cache expiry value
3/ Edit again
=> The value should have been updated.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
  Repeatable bug. Solved with this patch.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
reports/guided_reports.pl

index 71b9253..098a3d1 100755 (executable)
@@ -233,6 +233,7 @@ elsif ( $phase eq 'Update SQL'){
                     subgroup => $subgroup,
                     notes => $notes,
                     public => $public,
+                    cache_expiry => $cache_expiry,
                 } );
             $template->param(
                 'save_successful'       => 1,