Change calls to new to newById across Asset/

This commit is contained in:
Colin Kuskie 2010-03-03 16:27:45 -08:00
parent da574279d9
commit 814c2af249
55 changed files with 98 additions and 98 deletions

View file

@ -1229,7 +1229,7 @@ sub importAssetCollateralData {
my $id = $data->{properties}{assetId};
my $class = $data->{properties}{className};
my $version = $data->{properties}{revisionDate};
my $assetExists = WebGUI::Asset->new($self->session, $id, $class, $version);
my $assetExists = WebGUI::Asset->newById($self->session, $id, $version);
$error->info("Importing Things for Thingy ".$data->{properties}{title});
my @importThings;
@ -1298,7 +1298,7 @@ See WebGUI::Asset::prepareView() for details.
sub prepareView {
my $self = shift;
$self->SUPER::prepareView();
my $template = WebGUI::Asset::Template->new($self->session, $self->templateId);
my $template = WebGUI::Asset::Template->newById($self->session, $self->templateId);
if (!$template) {
WebGUI::Error::ObjectNotFound::Template->throw(
error => qq{Template not found},