Skip to content

Commit

Permalink
added the ability to skip valigation when calling expRecord's update …
Browse files Browse the repository at this point in the history
…function, assed to photo migration
  • Loading branch information
illiphilli committed Apr 28, 2011
1 parent 1d44f25 commit d246b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/core/datatypes/expRecord.php
Expand Up @@ -159,7 +159,7 @@ public function findBy($column, $value) {
public function update($params=array()) {
$this->checkForAttachableItems($params);
$this->build($params);
$this->save(true);
$this->save((isset($params['_validate'])?$params['_validate']:true));
}

public function refresh() {
Expand Down
Expand Up @@ -1025,7 +1025,7 @@ private function convert($iloc, $module, $hc=0) {
$photo->attachitem($file,'');
$photo->created_at = $gi['posted'];
$photo->edited_at = $gi['posted'];
$photo->update();
$photo->update(array("validate"=>false));
}
}
}
Expand Down

0 comments on commit d246b3f

Please sign in to comment.