Skip to content

Commit

Permalink
Merge branch 'master' of github.com:centurion-project/Centurion
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenay committed Jul 6, 2012
2 parents 5347e9c + 45d6eda commit a4c60e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/Centurion/Form/Model/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ public function setInstance(Centurion_Db_Table_Row_Abstract $instance = null)
{
$this->_instance = $instance;
if (null !== $instance) {
if ($el = $this->getElement('_XSRF')) {
$this->addElement('Hash', '_XSRF', array('salt' => $this->getAttrib('id') . '_' . $instance->id));
}

$this->populate($instance->toArray());

$this->setSubInstance()
Expand Down

0 comments on commit a4c60e4

Please sign in to comment.