fix object identifier presence

This commit is contained in:
Manuel Raynaud
2013-12-16 15:53:02 +01:00
parent d6ba2b3d65
commit 30eab4f416
2 changed files with 2 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ trait UrlRewritingTrait {
public function setRewrittenUrl($locale, $url)
{
$currentUrl = $this->getRewrittenUrl($locale);
if($currentUrl == $url) {
if($currentUrl == $url || null === $url) {
/* no url update */
return $this;
}

View File

@@ -83,6 +83,7 @@
formAction = "{url path='/admin/products/seo/save'}"
pageUrl = "{url path='/admin/products/update' product_id=$ID}"
closeUrl = $close_url
current_id = $product_id
}
{/form}
</div>