public function save() { // set context for 'Save and Add Another' if (isset($this->_data[$this->modeltype]['slmaster_id'])) { $this->context = array('slmaster_id' => $this->_data[$this->modeltype]['slmaster_id']); } else { $this->context = array('slmaster_id' => ''); } parent::save(); }