mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-22 04:53:46 +09:00
News list for admin area fix
This commit is contained in:
1 parent
2b38da305a
commit
de18acb391
2 files changed
+1
-2
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user