From 91143700c69f6e9dc2061867cc20b14d736c430b Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 14 Sep 2018 09:40:15 +0800 Subject: [PATCH] UpdateDatabase.php --- UpdateDatabase.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/UpdateDatabase.php b/UpdateDatabase.php index c54a4d1d..13df3aff 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -867,10 +867,11 @@ class Pman_Core_UpdateDatabase extends Pman } // initEmails will always have the latest location of the test class - in theory the user should not be changign the value of this... //if (empty($cm->test_class)) { - if (empty($data['test_class'])) { - $this->jerr("missing test_class for template $name"); - } - $cm->test_class = $data['test_class']; + if (empty($data['test_class'])) { + $this->jerr("missing test_class for template $name"); + } + + $cm->test_class = $data['test_class']; //} if(isset($cm->to_group_id)) { print_r('isset'); @@ -895,6 +896,10 @@ class Pman_Core_UpdateDatabase extends Pman $cm->active = $data['active']; } + if(!empty($data['description'])){ + $cm->description = $data['description']; + } + require_once $cm->test_class . '.php'; $clsname = str_replace('/','_', $cm->test_class); -- 2.39.2