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
2575c487
Commit
2575c487
authored
Dec 17, 2013
by
Côme Bernigaud
Committed by
Benoit Mortier
Dec 17, 2013
Browse files
Fixes:
#1922
Fixing errors in copypaste handler
parent
1367e2c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/class_CopyPasteHandler.inc
View file @
2575c487
...
...
@@ -286,7 +286,7 @@ class CopyPasteHandler
private
function
save_current
(
$object
=
NULL
)
{
if
(
$objet
!==
NULL
)
{
if
(
$obje
c
t
!==
NULL
)
{
$this
->
current
=
$object
;
}
$this
->
lastdn
=
$this
->
current
[
'object'
]
->
dn
;
...
...
@@ -327,7 +327,7 @@ class CopyPasteHandler
$dst_dn
=
$this
->
current
[
'object'
]
->
dn
;
$src_dn
=
$this
->
current
[
'dn'
];
$this
->
current
->
handleForeignKeys
(
$src_dn
,
$dst_dn
,
(
$this
->
current
[
'method'
]
==
'cut'
?
'move'
:
'copy'
));
$this
->
current
[
'object'
]
->
getBaseObject
()
->
handleForeignKeys
(
$src_dn
,
$dst_dn
,
(
$this
->
current
[
'method'
]
==
'cut'
?
'move'
:
'copy'
));
// Only copy references if required
if
(
$this
->
current
[
'method'
]
!=
'copy'
)
{
...
...
Côme Chilliet
@cchilliet
mentioned in issue
#672 (closed)
·
Sep 02, 2017
mentioned in issue
#672 (closed)
mentioned in issue #672
Toggle commit list
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