Skip to content
Snippets Groups Projects
Commit bb1d1f26 authored by Tim Steiner's avatar Tim Steiner
Browse files

Update the Requests model to query for both Accept and Accepted requests

parent c14818fc
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ class Requests extends Nmc_Db_Table ...@@ -160,7 +160,7 @@ class Requests extends Nmc_Db_Table
$where = array(); $where = array();
$where[] = $db->quoteInto('requestId IN (?)', $requestIds); $where[] = $db->quoteInto('requestId IN (?)', $requestIds);
$where[] = 'state = "approve"'; $where[] = '(state = "approve" OR state = "approved")';
$where = implode(' AND ', $where); $where = implode(' AND ', $where);
return $this->fetchAllSorted($where, self::COMPLETED_REQUESTS_ONLY); return $this->fetchAllSorted($where, self::COMPLETED_REQUESTS_ONLY);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment