From 389a525cdf95358c9c373af5e4e020b5c96060b4 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 15 Mar 2007 11:16:52 +0000 Subject: [PATCH] Fixed mode switch git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5787 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/sieve/class_sieveManagement.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/sieve/class_sieveManagement.inc b/include/sieve/class_sieveManagement.inc index e16bbdce6..0bf128d21 100644 --- a/include/sieve/class_sieveManagement.inc +++ b/include/sieve/class_sieveManagement.inc @@ -386,6 +386,18 @@ class sieveManagement extends plugin } } } + if(in_array($Mode,array("Structured"))){ + $this->current_handler->save_object(); + $sc = $this->current_handler->get_sieve_script(); + $this->scripts[$this->current_script]['SCRIPT'] = $sc; + $p = new My_Parser; + if($p -> parse($sc)){ + $this->current_handler = $p; + } else { + print_red($p->status_text); + $skip_mode_change = TRUE; + } + } if(!$skip_mode_change){ if($this->scripts[$this->current_script]['MODE'] != "Source-Only"){ if(isset($_POST['View_Source'])){ -- 2.30.2