From: hickert Date: Mon, 2 Apr 2007 13:45:35 +0000 (+0000) Subject: Fixed setup step 6. some posts were not captured X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d678ebe0b57a0489a8298faf6bc3b951e4d4009b;p=gosa.git Fixed setup step 6. some posts were not captured git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5955 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/setup/class_setup.inc b/setup/class_setup.inc index 2ec1fd83b..c2223069d 100644 --- a/setup/class_setup.inc +++ b/setup/class_setup.inc @@ -101,6 +101,10 @@ class setup $step = -1; + if(isset($_POST['setup_goto_step'])){ + $step= $_POST['setup_goto_step']; + } + if(isset($_GET['step'])){ $step = $_GET['step']; }elseif(isset($_POST['next'])){ @@ -109,10 +113,6 @@ class setup $step = $this->i_current - 1; } - if(isset($_POST['setup_goto_step'])){ - $step= $_POST['setup_goto_step']; - } - $once = true; foreach($_POST as $name => $value){ if(preg_match("/^step_[0-9]*$/",$name) && $once ){ diff --git a/setup/class_setupStep6.inc b/setup/class_setupStep6.inc index f7e0d54ec..754f9ff7f 100644 --- a/setup/class_setupStep6.inc +++ b/setup/class_setupStep6.inc @@ -90,6 +90,24 @@ class setup_step_6 extends setup_step } } + if(isset($_POST['minid_active'])){ + $this->generic_settings['minid_active'] = TRUE; + if(isset($_POST['minid'])){ + $this->generic_settings['minid'] = $_POST['minid']; + } + }else{ + $this->generic_settings['minid_active'] = FALSE; + } + + if(isset($_POST['wws_ou_active'])){ + $this->generic_settings['wws_ou_active'] = TRUE; + if(isset($_POST['wws_ou'])){ + $this->generic_settings['wws_ou'] = $_POST['wws_ou']; + } + }else{ + $this->generic_settings['wws_ou_active'] = FALSE; + } + /* Generic settings */ if(isset($_POST['idgen_active'])){ $this->generic_settings['idgen_active'] = TRUE; diff --git a/setup/setup_step6.tpl b/setup/setup_step6.tpl index 734e0c00e..d67f255b9 100644 --- a/setup/setup_step6.tpl +++ b/setup/setup_step6.tpl @@ -76,7 +76,7 @@ {t}Windows workstation ou{/t}
- {if $generic_settings.minid_active == FALSE} + {if $generic_settings.wws_ou_active == FALSE}