From: hickert Date: Tue, 18 Mar 2008 08:50:12 +0000 (+0000) Subject: Updated notify event X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78109688914ca8e4ca618fbb9c7fee28e7ccc25c;p=gosa.git Updated notify event git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9914 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc index 15465aa3f..d37b7ecb8 100644 --- a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc +++ b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc @@ -46,6 +46,9 @@ class DaemonEvent_notify extends DaemonEvent public function execute() { DaemonEvent::execute(); + if(isset($_POST['add_any_target'])){ + echo "Not implemented yet"; + } $display = $this->get_header(); $tmp = $this->data; $smarty = get_smarty(); @@ -79,6 +82,9 @@ class DaemonEvent_notify extends DaemonEvent if(empty($this->message)){ $msgs[] = msgPool::required(_("Message")); } + if(!count($this->groups) && !count($this->users)){ + $msgs[] = msgPool::required(_("Target")); + } return($msgs); }