diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index 7b67379d7aaa7243a8db9dbc6bc29db005707e6b..eba1146bbf3617a2b4df9397bf74686dc25b96bd 100644 (file)
/* attribute list for save action */
var $attributes = array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters",
- "FAIclass", "FAIstatus", "gotoShare","FAIdebianMirror", "FAIrelease");
+ "FAIclass", "FAIstate", "FAIstatus", "gotoShare","FAIdebianMirror", "FAIrelease");
var $objectclasses = array("GOhard", "FAIobject");
/* Share */
var $FAIclass = array(); // The currently selected classes
var $FAIrelease = "";
var $FAIdebianMirror = "auto";
+ var $FAIstate = "";
var $si_active = FALSE;
var $si_fai_action_failed = FALSE;
}
}
- if ($this->attrs['gotoBootKernel'] == "default-inherited"){
+ if ($this->gotoBootKernel == "default-inherited"){
$this->attrs['gotoBootKernel']= array();
}
function PrepareForCopyPaste($source)
{
plugin::PrepareForCopyPaste($source);
+
$source_o = new workstartup ($this->config, $source['dn']);
foreach(array("FAIclass","gotoModules", "gotoAutoFs", "gotoFilesystem",
- "gotoKernelParameters","gotoShares","gotoLdapServers", "gotoLdap_inherit") as $attr){
+ "FAIstate", "FAIrelease", "gotoKernelParameters","gotoShares",
+ "gotoLdapServers", "gotoLdap_inherit") as $attr){
$this->$attr = $source_o->$attr;
}
+ if (isset($source['FAIstate'])) {
+ $this->attrs['FAIstate'] = $source['FAIstate'];
+ }
}