bug fixes

This commit is contained in:
JT Smith 2004-09-24 16:09:32 +00:00
parent cc6cfe22b0
commit e6818b58fc
3 changed files with 16 additions and 5 deletions

View file

@ -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);