News list for admin area fix

This commit is contained in:
4Giedrius committed 2014-12-03 15:27:46 +02:00
1 parent 2b38da305a
commit de18acb391
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ class Admin extends \Api_Abstract
$pager = $this->di['pager']->getSimpleResultSet($sql, $params, $per_page);
foreach ($pager['list'] as $key => $item) {
$post = $this->di['db']->getExistingModelById('Post', $item['id'], 'Post not found');
$pager['list'][$key] = $this->getService()->toApiArray($post);
$pager['list'][$key] = $this->getService()->toApiArray($post, 'admin');
}
return $pager;
@@ -21,7 +21,6 @@
<thead>
<tr>
<td style="width: 2%"><input type="checkbox" class="batch-delete-master-checkbox"/></td>
<td>#</td>
<td colspan="2">{% trans 'Title' %}</td>
<td>{% trans 'Active' %}</td>
<td>{% trans 'Date' %}</td>