From 1975fb8d619f243e88ef985f59ae9358b176290e Mon Sep 17 00:00:00 2001 From: Thibault Dockx <thibault.dockx@fusiondirectory.org> Date: Mon, 24 Feb 2025 16:36:59 +0000 Subject: [PATCH] :sparkles: Feat(Snapshot) - add small change small change for snapshot --- include/management/snapshot/class_SnapshotAttribute.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/management/snapshot/class_SnapshotAttribute.inc b/include/management/snapshot/class_SnapshotAttribute.inc index d09e49323..7ea5e2423 100755 --- a/include/management/snapshot/class_SnapshotAttribute.inc +++ b/include/management/snapshot/class_SnapshotAttribute.inc @@ -122,7 +122,7 @@ class SnapshotsAttribute extends OrderedArrayAttribute } if (preg_match('/^'.$id.'_restore_/', (string) $postValue)) { $key = preg_replace('/^'.$id.'_restore_/', '', (string) $postValue); - $key = preg_replace('/_[xy]$/', '', $key); + $key = preg_replace('/_[xy]$/', '', (string) $key); $this->plugin->triggerRestore($this->value[$key]['dn']); return TRUE; -- GitLab