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

Commit

Permalink
Фикс фильтра. Поле CODE, заменено на =CODE, иначе прочерк в символьно…
Browse files Browse the repository at this point in the history
…м коде фильтруется как "1 любой символ", а так же фильтр срабатывает как like, если не добавлен знак равно. (#36)
  • Loading branch information
sanchesfree authored Jun 19, 2020
1 parent 5ff8e09 commit 4582b0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Queries/ElementQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ protected function loadModels()
*/
public function getByCode($code)
{
$this->filter['CODE'] = $code;
$this->filter['=CODE'] = $code;

return $this->first();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Queries/SectionQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function loadModels()
*/
public function getByCode($code)
{
$this->filter['CODE'] = $code;
$this->filter['=CODE'] = $code;

return $this->first();
}
Expand Down

0 comments on commit 4582b0c

Please sign in to comment.