Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Fixed Audit Log not being able to fetch a specific log item
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Apr 21, 2015
1 parent 50c9989 commit 573ba9d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion elementtypes/AuditLogElementType.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,13 @@ public function modifyElementsQuery(DbCommand $query, ElementCriteriaModel $crit
$query->setJoin('');
$query->setWhere('1=1');
$query->setGroup('');
array_shift($query->params);
unset($query->params[':locale']);
unset($query->params[':elementsid1']);

// Check for specific id
if (!empty($criteria->id)) {
$query->andWhere(DbHelper::parseParam('auditlog.id', $criteria->id, $query->params));
}

// Check for date after
if (!empty($criteria->after)) {
Expand Down

0 comments on commit 573ba9d

Please sign in to comment.