Forward porting bug fixes for billing address and asset with uncommitted parent.
This commit is contained in:
parent
f78886e3d7
commit
310d454162
3 changed files with 84 additions and 36 deletions
|
|
@ -216,7 +216,14 @@ sub getBackToSiteURL {
|
|||
$url = WebGUI::Asset->getDefault($self->session)->getUrl;
|
||||
}
|
||||
else {
|
||||
$url = $self->session->asset->getContainer->getUrl;
|
||||
my $container = $self->session->asset->getContainer;
|
||||
##Container may be under a different version tag if this asset has been moved.
|
||||
if (defined $container) {
|
||||
$url = $container->getUrl;
|
||||
}
|
||||
else {
|
||||
$url = $self->session->url->page();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$url = $self->session->url->page();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue