bean->status = ''; } //if if (!empty($_REQUEST['status']) && ($_REQUEST['status'] == 'Completed')) { $this->bean->status = 'Completed'; } parent::preDisplay(); } /** * @see SugarView::display() */ public function display() { if ($this->ev->isDuplicate) { $this->bean->status = $this->bean->getDefaultStatus(); } //if parent::display(); } }