From 0e03125da08955df2b6486a0f6f5bbe654479f85 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 19 Mar 2007 14:40:45 +0000 Subject: [PATCH] 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 --- include/sieve/class_sieveElement_Vacation.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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] */ -- 2.30.2