Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Comparing name instead of alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
okinaka committed Apr 23, 2014
1 parent dd74851 commit c398e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Behavior/TaggableBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ public function deleteTagged(Model $model) {
public function afterFind(Model $model, $results, $primary = false) {
extract($this->settings[$model->alias]);

if ($model->alias === $tagAlias) {
if ($model->name === $tagAlias) {
return $results;
}

Expand Down

0 comments on commit c398e5b

Please sign in to comment.