From: hickert Date: Mon, 19 Mar 2007 14:40:45 +0000 (+0000) Subject: Add "vacation" to require element automatically when vacation is added X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e03125da08955df2b6486a0f6f5bbe654479f85;p=gosa.git Add "vacation" to require element automatically when vacation is added git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5822 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_sieveElement_Vacation.inc b/include/sieve/class_sieveElement_Vacation.inc index 6854b1862..edb0efd76 100644 --- a/include/sieve/class_sieveElement_Vacation.inc +++ b/include/sieve/class_sieveElement_Vacation.inc @@ -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] */