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

Commit

Permalink
FIX, #12 and #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Feb 17, 2017
1 parent 4a9bc01 commit 9052cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/extensions/FusionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function validate(ValidationResult $result) {
$result->error("\"{$validate}\" required!");
}
else if($result->valid() && $class::get_one($class, array(
'ID != ?' => $this->owner->ID,
"{$class}.ID != ?" => $this->owner->ID,
"LOWER({$validate}) = ?" => strtolower($this->owner->$validate)
))) {
$result->error('Tag already exists!');
Expand Down
2 changes: 1 addition & 1 deletion code/extensions/TaggingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function updateSearchableFields(&$fields) {
'Tagging',
'Tags',
FusionTag::get()->map('Title', 'Title')->toArray(),
(($filtering = Controller::curr()->getRequest()->getVar('q')) && isset($filtering['Tagging'])) ? $filtering['Tagging'] : array(),
(Controller::has_curr() && ($filtering = Controller::curr()->getRequest()->getVar('q')) && isset($filtering['Tagging'])) ? $filtering['Tagging'] : array(),
null,
true
),
Expand Down

0 comments on commit 9052cc6

Please sign in to comment.