Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
55c63678
Commit
55c63678
authored
Oct 26, 2016
by
Côme Chilliet
Browse files
Reverting dn of all tabs to previous dn when saving fails, to avoid problems
parent
2528fe6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/simpleplugin/class_simpleTabs.inc
View file @
55c63678
...
...
@@ -413,6 +413,7 @@ class simpleTabs
if
(
$creation
&&
$first
)
{
/* If the fail of main tab fails for a creation, cancel the save of other tabs */
$this
->
dn
=
$old_dn
;
$obj
->
dn
=
$this
->
dn
;
return
$result
;
}
$errors
=
array_merge
(
$errors
,
$result
);
...
...
@@ -430,6 +431,9 @@ class simpleTabs
if
(
!
empty
(
$errors
))
{
$this
->
dn
=
$old_dn
;
foreach
(
$this
->
by_object
as
$obj
)
{
$obj
->
dn
=
$this
->
dn
;
}
}
return
$errors
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment