Fix template diagnostics, reverse templateId and assetId.
This commit is contained in:
parent
5af7333d79
commit
8ed444d6ff
2 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
7.7.16
|
||||
- Fix template not found diagnostics.
|
||||
|
||||
7.7.15
|
||||
- fixed #10629: WebGUI::ProfileField create new field bug
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ sub tryAssetMethod {
|
|||
my $methodToTry = "www_".$method;
|
||||
my $output = eval{$asset->$methodToTry()};
|
||||
if (my $e = Exception::Class->caught('WebGUI::Error::ObjectNotFound::Template')) {
|
||||
$session->errorHandler->error(sprintf "%s templateId: %s assetId: %s", $e->error, $e->assetId, $e->templateId);
|
||||
$session->errorHandler->error(sprintf "%s templateId: %s assetId: %s", $e->error, $e->templateId, $e->assetId);
|
||||
}
|
||||
elsif ($@) {
|
||||
$session->errorHandler->warn("Couldn't call method ".$method." on asset for url: ".$session->url->getRequestedUrl." Root cause: ".$@);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue