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

Commit

Permalink
Changing a Hash call back to Set to provide backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Mar 2, 2014
1 parent 018c360 commit ede645a
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 @@ -271,7 +271,7 @@ public function saveTags(Model $model, $string = null, $foreignKey = null, $upda
));

if (!empty($newTagIds)) {
$newTagIds = Hash::extract($newTagIds, '{n}.Tagged.tag_id');
$newTagIds = Set::extract($newTagIds, '{n}.Tagged.tag_id');
}

$this->cacheOccurrence($model, array_merge($oldTagIds, $newTagIds));
Expand Down

0 comments on commit ede645a

Please sign in to comment.