8.2.1 searchIndex bug
Permalink Browser Info Environment
Hello,
The searchIndex fails when the attributes is attached to a page but no page is selected. The returned value is false while the SearchIndex expects an integer.
The method getValue is called when this job runs. We fixed this by return 0 instead of false.
public function getValue() {
$db = Loader::db();
$value = $db->GetOne("select value from atPageSelector where avID = ?", array($this->getAttributeValueID()));
return ($value) ? $value : 0;
}
The searchIndex fails when the attributes is attached to a page but no page is selected. The returned value is false while the SearchIndex expects an integer.
The method getValue is called when this job runs. We fixed this by return 0 instead of false.
public function getValue() {
$db = Loader::db();
$value = $db->GetOne("select value from atPageSelector where avID = ?", array($this->getAttributeValueID()));
return ($value) ? $value : 0;
}
Type: | Discussion |
---|---|
Status: | In Progress |