Skip to content

Commit

Permalink
fixed error with duplicating a model record
Browse files Browse the repository at this point in the history
  • Loading branch information
David McReynolds committed Oct 14, 2014
1 parent 91f8c9a commit 332adff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuel/modules/fuel/core/MY_Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -4665,7 +4665,7 @@ public function duplicate()
// call on duplicate method
$values = $this->_parent_model->on_duplicate($values);

$dup->fill($$values);
$dup->fill($values);

// NULL out key values so as not to overwrite existing objects
$key_field = (array) $this->_parent_model->key_field();
Expand Down

0 comments on commit 332adff

Please sign in to comment.