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;
}

Type: Discussion
Status: In Progress
rge
View Replies:
ELIC replied on at Permalink Reply
ELIC
Awesome, thanks for this!

concrete5 Environment Information

PHP 7

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.