Esempio n. 1
0
 /**
  * @param ShopUrl $object
  * @return void
  */
 protected function afterUpdate($object)
 {
     if ($object->id && Tools::getValue('main')) {
         $object->setMain();
     }
     if ($this->redirect_shop_url) {
         $this->redirect_after = $object->getBaseURI() . basename(_PS_ADMIN_DIR_) . '/' . $this->context->link->getAdminLink('AdminShopUrl');
     }
 }