/** * Set up current form errors in session to * the current form if appropriate. */ public function setupFormErrors() { //Only run when fields exist if ($this->fields->exists()) { parent::setupFormErrors(); } }