X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_MultiSelectWindow.inc;h=9dd83864c87abca7542ae2ccb0f2686a501b7a49;hb=e1d95c29272ce8b78eb366517e668aa6f49736a2;hp=d50f410078326a1cf24ae246da14e87e1867c499;hpb=d00c540f49a26a2d62e481c4823cf775bdff0d43;p=gosa.git
diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc
index d50f41007..9dd83864c 100644
--- a/include/class_MultiSelectWindow.inc
+++ b/include/class_MultiSelectWindow.inc
@@ -360,6 +360,11 @@ class MultiSelectWindow{
Store data also into a session var, to keep the checkboxes check after reload */
function save_object()
{
+ /* Get up to date config */
+ if(isset($this->parent->config)){
+ $this->config = $this->parent->config;
+ }
+
/* Update current base */
if($this->DepartmentsAdded){
$s_action ="";
@@ -486,7 +491,7 @@ class MultiSelectWindow{
/* Create header snapshot value */
function get_snapshot_header()
{
- $str = "";
+ $str = " ";
if($this->parent->snapshotEnabled()){
$ok = false;
foreach($this->parent->get_used_snapshot_bases() as $base){
@@ -508,16 +513,18 @@ class MultiSelectWindow{
function GetSnapShotActions($dn)
{
- $str = "";
+ $str= "";
if($this->parent->snapshotEnabled()){
- $str= " ";
-
if(count($this->parent->Available_SnapsShots($dn))){
- $str= " ";
+ } else {
+ $str = "
";
}
+
+ $str.= " ";
}
return($str);