Skip to content

Commit 2f73fd2

Browse files
authored
Fix for checkIdentifier tag function
1 parent 14741eb commit 2f73fd2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Model/Tag.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,12 @@ public function getOwnTitle($plural = false)
130130
* return tag id if tag exists
131131
*
132132
* @param string $identifier
133+
* @param int $storeId
133134
* @return int
134135
*/
135-
public function checkIdentifier($identifier)
136+
public function checkIdentifier($identifier, $storeId)
136137
{
137-
$tag = $this->load($identifier);
138-
if ($tag->getIdentifier() == $identifier) {
139-
return $tag->getId();
140-
}
141-
142-
return null;
138+
return $this->_getResource()->checkIdentifier($identifier, $storeId);
143139
}
144140

145141
/**

0 commit comments

Comments
 (0)