From 480a1ade81949439992531429cf6233d8b4ab1d8 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 28 Mar 2019 11:11:48 -0600 Subject: [PATCH] Fix parent command filter --- admin/inc/class.admin_cmd.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_cmd.inc.php b/admin/inc/class.admin_cmd.inc.php index 9b36731eac..81f2561a81 100644 --- a/admin/inc/class.admin_cmd.inc.php +++ b/admin/inc/class.admin_cmd.inc.php @@ -512,9 +512,9 @@ abstract class admin_cmd $query['col_filter'][] = 'cmd_rrule IS NOT NULL'; } unset($query['col_filter']['periodic']); - if($query['parent_id']) + if($query['col_filter']['parent']) { - $query['col_filter']['parent'] = (int)$query['parent_id']; + $query['col_filter']['parent'] = (int)$query['col_filter']['parent']; } $total = admin_cmd::$sql->get_rows($query,$rows,$readonlys);