Code

Add "vacation" to require element automatically when vacation is added
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Mar 2007 14:40:45 +0000 (14:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Mar 2007 14:40:45 +0000 (14:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5822 594d385d-05f5-0310-b6e9-bd551577e9d8

include/sieve/class_sieveElement_Vacation.inc

index 6854b1862e5c74ff4c4e6a261770444bf3e17217..edb0efd763cc700a53855dbb5e28413bee85ffd6 100644 (file)
@@ -11,11 +11,14 @@ class sieve_vacation
   var $addresses= array();
   var $object_id= -1;
   var $Expert   = FALSE;
+  var $parent   = NULL;
 
-  function sieve_vacation($data,$object_id)
+  function sieve_vacation($data,$object_id,$parent)
   {
-
+    $this->parent = $parent;
     $this->object_id = $object_id;
+    $this->parent->add_require("vacation");
+
     /* Usage:   vacation [":days" number] [":subject" string]
        [":from" string] [":addresses" string-list]
        [":mime"] [":handle" string] <reason: string> */