bug fixes
This commit is contained in:
parent
cc6cfe22b0
commit
e6818b58fc
3 changed files with 16 additions and 5 deletions
|
|
@ -1294,7 +1294,7 @@ sub paste{
|
|||
($self, $newMother) = @_;
|
||||
|
||||
# You do not want to paste a page onto itself, believe me.
|
||||
return $self if ($self->get("pageId") == $newMother->get("pageId"));
|
||||
return $self if ($self->get("pageId") eq $newMother->get("pageId"));
|
||||
return WebGUI::ErrorHandler::fatalError("You cannot paste a page that's not on the clipboard. parentId:".
|
||||
$self->get("parentId").", pageId:".$self->get("pageId")) unless ($self->get("parentId") == 2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue