From c500403e639a9752256b8023785837ecd4b50395 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 11 Jun 2019 13:24:41 -0600 Subject: [PATCH] Admin - remove a few more fields we don't want in periodic child jobs --- admin/inc/class.admin_cmd.inc.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/admin/inc/class.admin_cmd.inc.php b/admin/inc/class.admin_cmd.inc.php index 651b78a21b..93f8d284d3 100644 --- a/admin/inc/class.admin_cmd.inc.php +++ b/admin/inc/class.admin_cmd.inc.php @@ -1126,11 +1126,13 @@ abstract class admin_cmd // instanciate single periodic execution object $single = $cmd->as_array(); $single['parent'] = $single['id']; - unset($single['id'], $single['uid'], $single['rrule'], $single['created'], - $single['modified'], $single['modifier'], - // $single['set'], $single['old'], - $single['async_job_id'] - ); + $single = array_diff_key($single, array( + 'id','uid', + 'created','modified','modifier', + 'async_job_id','rrule','scheduled', + 'status', 'set', 'old' + )); + $periodic = admin_cmd::instanciate($single); try {