From 5ec05f5363fa6265205d7a31bbe40e945e73154b Mon Sep 17 00:00:00 2001 From: Clemente Raposo Date: Fri, 17 Feb 2023 11:26:22 +0000 Subject: [PATCH] [Legacy] Add date start field to alerts --- public/legacy/modules/Alerts/Alert.php | 20 +++++++++++++++++++ .../modules/Alerts/language/en_us.lang.php | 1 + public/legacy/modules/Alerts/vardefs.php | 5 +++++ 3 files changed, 26 insertions(+) diff --git a/public/legacy/modules/Alerts/Alert.php b/public/legacy/modules/Alerts/Alert.php index 0545bdf03..20cd4a264 100644 --- a/public/legacy/modules/Alerts/Alert.php +++ b/public/legacy/modules/Alerts/Alert.php @@ -64,11 +64,31 @@ class Alert extends Basic public $is_read; public $snooze; + /** + * @var string + */ + public $url_redirect; + + /** + * @var string + */ + public $type; + + /** + * @var string + */ + public $target_module; + /** * @var string */ public $reminder_id; + /** + * @var string + */ + public $date_start; + public function __construct() { parent::__construct(); diff --git a/public/legacy/modules/Alerts/language/en_us.lang.php b/public/legacy/modules/Alerts/language/en_us.lang.php index 1f4b297d3..2b3a9b926 100644 --- a/public/legacy/modules/Alerts/language/en_us.lang.php +++ b/public/legacy/modules/Alerts/language/en_us.lang.php @@ -70,6 +70,7 @@ $mod_strings = array( 'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Activities', 'LBL_NEW_FORM_TITLE' => 'New Alert', 'LBL_IS_READ' => 'Is Read', + 'LBL_DATE_START' => 'Date Start', 'LBL_TYPE' => 'Type', ); diff --git a/public/legacy/modules/Alerts/vardefs.php b/public/legacy/modules/Alerts/vardefs.php index ef13cb52c..307ad57b9 100644 --- a/public/legacy/modules/Alerts/vardefs.php +++ b/public/legacy/modules/Alerts/vardefs.php @@ -101,6 +101,11 @@ $dictionary['Alert'] = [ 'required' => false, 'studio' => false, 'comment' => 'Set Snooze For Notifications', + ], + 'date_start' => [ + 'name' => 'date_start', + 'vname' => 'LBL_DATE', + 'type' => 'datetime', ] ], 'relationships' => [],