Skip to content

Commit

Permalink
fixed logable behavior [#39 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Jan 6, 2010
1 parent fcd9bb4 commit f79a5d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app_model.php
Expand Up @@ -20,10 +20,8 @@
class AppModel extends Model {
var $useDbConfig = 'default';

var $actsAs = array(
'Containable', 'Core.Lockable'
// 'Core.Logable' some wierd issues
);
var $actsAs = array('Containable', 'Core.Lockable', 'Core.Logable');

}

?>
2 changes: 1 addition & 1 deletion infinitas/core/models/behaviors/logable.php
Expand Up @@ -492,7 +492,7 @@ function _saveLog(&$Model, $logData, $title = null) {
$logData['Log']['description'] .= '.';
}
$this->Log->create($logData);
$this->Log->save(null, false);
$this->Log->save(null, array('validate'=>false, 'callbacks' => false));
}
}

Expand Down

0 comments on commit f79a5d8

Please sign in to comment.