Commit 6f1c30a7 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #1922 Fixing errors in copypaste handler

parent dc35495c
......@@ -286,7 +286,7 @@ class CopyPasteHandler
private function save_current($object = NULL)
{
if ($objet !== NULL) {
if ($object !== 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') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment