diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc
index dec41991c7a2eb801c218c9876a6c377d57c5a27..bed2dd23152b03bc2a375d76fdd96ca7dcd3cf6e 100644 (file)
"installationTemplates" => "loadInstallationTemplates",
"installationMethods" => "loadInstallationMethods",
"locales" => "getSystemLocales" ) as $target => $func){
- $$target = $this->$func();
- if($$target == NULL){
- $this->initFailed = TRUE;
- msg_dialog::display(_("Error"), msgPool::rpcError($this->rpcErrorMessage), ERROR_DIALOG);
- return;
+
+ if(!session::is_set("InstallRecipe::{$func}")){
+ $tmp = $this->$func();
+ if($tmp == NULL){
+ $this->initFailed = TRUE;
+ msg_dialog::display(_("Error"), msgPool::rpcError($this->rpcErrorMessage), ERROR_DIALOG);
+ return;
+ }else{
+ session::set("InstallRecipe::{$func}", $tmp);
+ }
}
+ $$target = session::get("InstallRecipe::{$func}");
}
// Assign fetchted values