Code

Updated notify event
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Mar 2008 08:50:12 +0000 (08:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Mar 2008 08:50:12 +0000 (08:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9914 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc

index 15465aa3fb8ada1c2965485303aa417fef076690..d37b7ecb80bb61263151c1ef375371537bb3e018 100644 (file)
@@ -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);
   }