Bug on PageListPlus#filterByAttributes
Permalink Browser Info Environment
Can not filter by multiple type attributes
version: 5.6.0.0.0.5.7
if (is_object($attributeKey) || $isStandardProperty) { $dateFormat = 'Y-m-d H:i:s'; if ($isStandardProperty) { $currentValue = $this->getStandardPropertyAttributeValue($akID); $handle = $this->getStandardPropertyAttributeHandle($akID); $isDate = $this->getStandardPropertyAttributeIsDate($akID); } else { $currentValue = $this->collectionObject->getCollectionAttributeValue($attributeKey); $handle = 'ak_' . $attributeKey->akHandle; if ($attributeKey->atHandle == "date_time") { $isDate = true; $db = Loader::db(); $dateDisplayMode = $db->GetOne('select akDateDisplayMode from atDateTimeSettings where akID = ?', $attributeKey->getAttributeKeyID()); $dateDisplayMode = $dateDisplayMode == '' ? 'date_time' : $dateDisplayMode; $dateFormat = $dateDisplayMode == 'date' ? 'Y-m-d' : 'Y-m-d H:i:s';
Viewing 15 lines of 19 lines. View entire code block.
version: 5.6.0.0.0.5.7
Type: | Discussion |
---|---|
Status: | New |