Exemplo n.º 1
0
 /**
  * Try to apply the values in this form to 'obj'.
  * Since the object is auditable, make a copy of it here so that any changes
  * made during validation or the commit process do not affect the original.
  * @param AUDITABLE $obj Store the form values to this object.
  */
 public function attempt_action($obj)
 {
     if (!$this->previewing()) {
         if ($this->cloning()) {
             $obj->initialize_as_new();
         }
         $this->_history_item = $obj->new_history_item();
     }
     parent::attempt_action($obj);
 }