diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm index 972c13904..cacb42c37 100644 --- a/lib/WebGUI.pm +++ b/lib/WebGUI.pm @@ -152,7 +152,7 @@ sub handle { for my $handler (@{$session->config->get("contentHandlers")}) { my $output = eval { WebGUI::Pluggable::run($handler, "handler", [ $session ] )}; if ( my $e = WebGUI::Error->caught ) { - $session->log->error($e->package.":".$e->line." - ".$e->error); + $session->log->error($e->package.":".$e->line." - ".$e->full_message); $session->log->debug($e->package.":".$e->line." - ".$e->trace); } elsif ( $@ ) { diff --git a/t/Asset/EMSSubmissionForm.t b/t/Asset/EMSSubmissionForm.t index ff3ce2372..5e0230a0c 100644 --- a/t/Asset/EMSSubmissionForm.t +++ b/t/Asset/EMSSubmissionForm.t @@ -85,9 +85,6 @@ loginRgstr ; # Add an EMS asset my $ems = $node->addChild({ className =>'WebGUI::Asset::Wobject::EventManagementSystem', - title => 'Test EMS', - description => 'This is a test ems', - url => '/test-ems', workflowIdCommit => 'pbworkflow000000000003', # Commit Content Immediately registrationStaffGroupId => $registrars->getId, groupIdView => $attendees->getId, diff --git a/t/Asset/Shortcut/020-content-last-modified.t b/t/Asset/Shortcut/020-content-last-modified.t index 98799d64b..707a58445 100644 --- a/t/Asset/Shortcut/020-content-last-modified.t +++ b/t/Asset/Shortcut/020-content-last-modified.t @@ -25,7 +25,7 @@ use WebGUI::Asset::Snippet; #---------------------------------------------------------------------------- # Init my $session = WebGUI::Test->session; -my $node = WebGUI::Asset->getImportNode($session); +my $node = WebGUI::Test->asset; # Make a snippet to shortcut my $now = time(); diff --git a/t/Asset/Story.t b/t/Asset/Story.t index 1224a2d08..25c879338 100644 --- a/t/Asset/Story.t +++ b/t/Asset/Story.t @@ -329,7 +329,7 @@ cmp_bag( { keyword => "whiskey", url => '/home/test-archive?func=view;keyword=whiskey', }, ], 'viewTemplateVariables: keywords_loop is okay' -); +) or debug( Dumper $viewVariables->{keyword_loop} ); is ($viewVariables->{updatedTimeEpoch}, $story->revisionDate, 'viewTemplateVariables: updatedTimeEpoch'); diff --git a/t/Asset/Wobject/Collaboration/getThreads.t b/t/Asset/Wobject/Collaboration/getThreads.t index 88868953a..eb833889f 100644 --- a/t/Asset/Wobject/Collaboration/getThreads.t +++ b/t/Asset/Wobject/Collaboration/getThreads.t @@ -89,6 +89,10 @@ $expect = sortThreads( sub { $b->get('revisionDate') <=> $a->get('revisionDate') cmp_deeply( $page, $expect, 'getThreadsPaginator sort by no default' ) or diag( "GOT: " . Dumper $page ), diag( "EXPECTED: " . Dumper $expect ); undef $collab2; +# clear scratch to reset sort +$session->scratch->delete($collab->getId.'_sortBy'); +$session->scratch->delete($collab->getId.'_sortDir'); + # sortBy default from asset $collab->update({ sortBy => 'assetData.revisionDate', diff --git a/t/Asset/Wobject/EventManagementSystem.t b/t/Asset/Wobject/EventManagementSystem.t index a5de8e7cd..3a15897db 100644 --- a/t/Asset/Wobject/EventManagementSystem.t +++ b/t/Asset/Wobject/EventManagementSystem.t @@ -65,7 +65,7 @@ my $ems = $node->addChild({ className =>'WebGUI::Asset::Wobject::EventManagementSystem', title => 'Test EMS', description => 'This is a test ems', - url => '/test-ems', + url => 'test-ems', workflowIdCommit => 'pbworkflow000000000003', # Commit Content Immediately registrationStaffGroupId => $registrars->getId, groupIdView => $attendees->getId, diff --git a/t/Macro/RootTitle.t b/t/Macro/RootTitle.t index 98b71aaf8..43d922e11 100644 --- a/t/Macro/RootTitle.t +++ b/t/Macro/RootTitle.t @@ -33,7 +33,7 @@ $versionTag->set({name=>"Adding assets for RootTitle tests"}); my %tag = ( tagId => $versionTag->getId, status => "pending" ); addToCleanup($versionTag); -my $root = WebGUI::Asset->getRoot($session); +my $root = WebGUI::Test->asset; my %properties_A = ( className => 'WebGUI::Asset::Snippet', title => 'Asset A',