From 9463a0f395eebeec41f453dfb8948811c45d90cd Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 25 Jun 2020 13:06:20 -0600 Subject: [PATCH] Admin: Fix customfields UI did not use edit() from extending class --- admin/inc/class.admin_customfields.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_customfields.inc.php b/admin/inc/class.admin_customfields.inc.php index 74f8c0cc4c..fe26dbe79a 100644 --- a/admin/inc/class.admin_customfields.inc.php +++ b/admin/inc/class.admin_customfields.inc.php @@ -529,19 +529,20 @@ class admin_customfields */ protected function get_actions() { + $edit = $this->appname . '.' . get_class($this) . '.edit'; $actions = array( 'open' => array( // does edit if allowed, otherwise view 'caption' => 'Open', 'default' => true, 'allowOnMultiple' => false, - 'url' => 'menuaction=admin.admin_customfields.edit&cf_id=$id&use_private='.$this->use_private, + 'url' => 'menuaction='.$edit.'&cf_id=$id&use_private='.$this->use_private, 'popup' => '500x380', 'group' => $group=1, 'disableClass' => 'th', ), 'add' => array( 'caption' => 'Add', - 'url' => 'menuaction=admin.admin_customfields.edit&appname='.$this->appname.'&use_private='.$this->use_private, + 'url' => 'menuaction='.$edit.'&appname='.$this->appname.'&use_private='.$this->use_private, 'popup' => '500x380', 'group' => $group, ),