From 3945af7792c02a31c4926aa278c8ee2cefed40ad Mon Sep 17 00:00:00 2001 From: Joe Huss Date: Wed, 3 Apr 2019 22:29:31 -0400 Subject: [PATCH] just commited that .. next I went in the activation/eanable event for the other modules I hadn't added that code to them yet either (that sets the status to 1) .. so adding that to them now --- src/Plugin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Plugin.php b/src/Plugin.php index 099db9d..8cd5d64 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -80,6 +80,11 @@ public static function loadProcessing(GenericEvent $event) $headers .= 'Content-type: text/html; charset=UTF-8'.PHP_EOL; $headers .= 'From: '.TITLE.' <'.EMAIL_FROM.'>'.PHP_EOL; admin_mail($subject, $email, $headers, false, 'admin/domain_created.tpl'); + $db->query("select * from queue_log where history_section='".self::$module."order' and history_type='{$serviceInfo[$settings['PREFIX'].'_id']}' and history_new_value=0"); + if ($db->num_rows() > 0) { + $db->next_record(MYSQL_ASSOC); + $db->query("update queue_log set history_new_value=1 where history_id='{$db->Record['history_id']}'"); + } })->setReactivate(function ($service) { $serviceTypes = run_event('get_service_types', false, self::$module); $serviceInfo = $service->getServiceInfo();