diff --git a/include/sieve/class_sieveElement_Reject.inc b/include/sieve/class_sieveElement_Reject.inc
index 6c0a6f5b6472e79db98467dc77837dfb36886bb7..cdb89f9fb391ec737bd45e4c49f0f700d601e639 100644 (file)
{
var $data = "";
var $object_id = -1;
-
+ var $parent = NULL;
function save_object()
{
return(array());
}
- function sieve_reject($data,$object_id)
+ function sieve_reject($data,$object_id,$parent)
{
$this->object_id = $object_id;
+ $this->parent = $parent;
+ $this->parent->add_require("reject");
/* If the given data is emtpy
* (This is the case when we add new elements in the ui)
function get_sieve_script_part()
{
- return("reject ".sieve_create_strings($this->data).";\n");
+ return("reject ".sieve_create_strings($this->data).";");
}
function execute()