From 426ab67158e77db100124199a3f082d0ff15d881 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 2 Sep 2009 09:12:22 +0000 Subject: [PATCH] Updated gotomasses. -Updated template design.- -Updated result parsing- there is something strange going on. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14189 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../addons/goto/events/DaemonEvent_notify.tpl | 40 +++++++++---------- .../addons/goto/events/class_DaemonEvent.inc | 5 ++- .../addons/goto/events/timestamp_select.tpl | 9 ++--- 3 files changed, 26 insertions(+), 28 deletions(-) diff --git a/gosa-plugins/goto/addons/goto/events/DaemonEvent_notify.tpl b/gosa-plugins/goto/addons/goto/events/DaemonEvent_notify.tpl index 98ca474b4..3eb714b36 100644 --- a/gosa-plugins/goto/addons/goto/events/DaemonEvent_notify.tpl +++ b/gosa-plugins/goto/addons/goto/events/DaemonEvent_notify.tpl @@ -3,29 +3,29 @@ -
+ {t}Message settings{/t} - - - - - - - - - - - - - - - +
{t}Sender{/t}
{t}Subject{/t}
{t}Message{/t} :
- -
+ + + + + + + + + + + + + +
{t}Sender{/t}
{t}Subject{/t}
{t}Message{/t} :
+ +
- {t}Schedule{/t} + {t}Schedule{/t} @@ -63,7 +63,7 @@
{$timestamp}

-
+ diff --git a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc index 192b67af7..ae9078130 100644 --- a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc +++ b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc @@ -110,9 +110,9 @@ class DaemonEvent } } - if(isset($data['PERIODIC'])){ + if(isset($data['PERIODIC']) && !preg_match("/none/i",$data['PERIODIC'])){ $tmp = split("_",$data['PERIODIC']); - if(count($tmp)){ + if(count($tmp) == 2){ $this->activate_periodical_job = TRUE; $this->periodValue = $tmp[0]; $this->periodType = $tmp[1]; @@ -492,6 +492,7 @@ class DaemonEvent unset($ret['timestamp']); } + $ret['periodic'] = "none"; if($this-> activate_periodical_job){ $ret['periodic'][$this->periodType] = $this->periodValue; } diff --git a/gosa-plugins/goto/addons/goto/events/timestamp_select.tpl b/gosa-plugins/goto/addons/goto/events/timestamp_select.tpl index 593488abf..230bebdea 100644 --- a/gosa-plugins/goto/addons/goto/events/timestamp_select.tpl +++ b/gosa-plugins/goto/addons/goto/events/timestamp_select.tpl @@ -43,15 +43,12 @@
{t}ID{/t}

-
-- 2.30.2
-

- - {t}Periodical job{/t} -

+ {t}Periodical job{/t} +