fix 11975 cannot paste threads: Cannot call method isa()

This commit is contained in:
Doug Bell 2011-01-03 20:36:08 -06:00
parent 78a4c1295a
commit 93525126a4
3 changed files with 36 additions and 1 deletions

View file

@ -317,6 +317,7 @@ sub pasteInFork {
my ( $process, $args ) = @_;
my $session = $process->session;
my $self = WebGUI::Asset->new( $session, $args->{assetId} );
$session->asset( $self );
my @roots = grep { $_ && $_->canEdit }
map { WebGUI::Asset->newPending( $session, $_ ) } @{ $args->{list} };