From: Edward Date: Fri, 14 Sep 2018 01:40:15 +0000 (+0800) Subject: UpdateDatabase.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=91143700c69f6e9dc2061867cc20b14d736c430b UpdateDatabase.php --- 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);