Code

Fixed dialog ignore account state
[gosa.git] / gosa-core / include / class_plugin.inc
index 20cb44568c0fcf1dfc62d7e3b34e107f8e079c17..5af5652297a8c8bd417dc9bb3c9e37553d105532 100644 (file)
@@ -1465,7 +1465,7 @@ class plugin
       /* Restore selected snapshot */
       if(preg_match("/^RestoreSnapShot_/",$name) && $once){
         $once = false;
-        $entry = base64_decode(preg_replace("/^RestoreSnapShot_([^_]*)_[xy]$/i","\\1",$name));
+        $entry = base64_decode(preg_replace("/^RestoreSnapShot_(.*)$/i","\\1",$name));
 
         if(!empty($entry) && $ui->allow_snapshot_restore($this->dn,$this->parent->acl_module)){
           $this->restore_snapshot($entry);