function save() { $result = parent::store(); if (!$result) { return $this->edit(); } if (JRequest::getBool('variant')) { JRequest::setVar('cid', JRequest::getInt('parent_id')); $this->variant(); } else { $this->listing(); } }