From: hickert Date: Mon, 19 Mar 2007 10:12:55 +0000 (+0000) Subject: Abort button for sieve edit should work now; X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=66e11471524357144a586cd8bdf15e9be033b9ab;p=gosa.git Abort button for sieve edit should work now; git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5815 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_sieveManagement.inc b/include/sieve/class_sieveManagement.inc index ad8b63ae5..f530cef29 100644 --- a/include/sieve/class_sieveManagement.inc +++ b/include/sieve/class_sieveManagement.inc @@ -262,6 +262,7 @@ class sieveManagement extends plugin $this->current_script = $script; $this->current_handler = $this->scripts[$script]['PARSER']; + $this->scripts[$script]['SCRIPT_BACKUP'] = $this->scripts[$script]['SCRIPT']; } /* remove script requested */ @@ -361,6 +362,9 @@ class sieveManagement extends plugin /* Abort saving */ if(isset($_POST['cancel_sieve_changes'])){ + $tmp = $this->scripts[$this->current_script]['SCRIPT_BACKUP']; + $this->scripts[$this->current_script]['SCRIPT'] = $tmp; + $this->scripts[$this->current_script]['PARSER']->parse($tmp); $this->current_handler = NULL; }