From: hickert Date: Wed, 27 Feb 2008 11:11:03 +0000 (+0000) Subject: Upated gotomasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad8dd74ffe14e0c42cabcf64c4481ab1a62c0d19;p=gosa.git Upated gotomasses -Updated error will be displayed now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9168 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc index 28c23e2d7..b625e20c8 100644 --- a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc +++ b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc @@ -191,9 +191,8 @@ class gotomasses extends plugin /* Close dialog */ if(isset($_POST['save_event_dialog'])){ - if(is_object($this->dialog)){ - + $this->dialog->save_object(); if($this->dialog->is_new()){ $header = $this->dialog->get_schedule_action(); $targets = $this->dialog->get_targets(); @@ -203,7 +202,7 @@ class gotomasses extends plugin foreach($targets as $target){ $data['mac'] = $target; - if(!$this->o_queue->send($header,$target,$data,TRUE)){ + if(!$this->o_queue->send_data($header,$target,$data,TRUE)){ msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."), $this->o_queue->get_error()),ERROR_DIALOG); } @@ -217,6 +216,9 @@ class gotomasses extends plugin if($this->o_queue->update_entries(array($id),$data)){ $this->dialog = FALSE; $this->current = -1; + }else{ + msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."), + $this->o_queue->get_error()),ERROR_DIALOG); } } }