Example #1
0
 /**
  * Update model
  *
  * @return void
  */
 protected function doActionUpdate()
 {
     if ($this->getModelForm()->getModelObject()->getId()) {
         $this->setSilenceClose();
     } else {
         $this->setInternalRedirect();
     }
     $list = new \XLite\View\ItemsList\Model\AttributeOption();
     $list->processQuick();
     if ($this->getModelForm()->performAction('modify')) {
         \XLite\Core\Event::updateAttribute(array('id' => $this->getModelForm()->getModelObject()->getId()));
         $this->setReturnUrl(\XLite\Core\Converter::buildURL('attribute', '', array('id' => $this->getModelForm()->getModelObject()->getId(), 'product_class_id' => \XLite\Core\Request::getInstance()->product_class_id, 'widget' => 'XLite\\View\\Attribute')));
     }
 }