* [bug#54444,done,1h] show all users.
This commit is contained in:
@@ -13,12 +13,13 @@ $config->mail->browse->dtable->fieldList['id']['sortType'] = true;
|
||||
$config->mail->browse->dtable->fieldList['id']['required'] = true;
|
||||
$config->mail->browse->dtable->fieldList['id']['group'] = 1;
|
||||
|
||||
$config->mail->browse->dtable->fieldList['toList']['name'] = 'toList';
|
||||
$config->mail->browse->dtable->fieldList['toList']['title'] = $lang->mail->toList;
|
||||
$config->mail->browse->dtable->fieldList['toList']['type'] = 'user';
|
||||
$config->mail->browse->dtable->fieldList['toList']['sortType'] = true;
|
||||
$config->mail->browse->dtable->fieldList['toList']['required'] = true;
|
||||
$config->mail->browse->dtable->fieldList['toList']['group'] = 2;
|
||||
$config->mail->browse->dtable->fieldList['toList']['name'] = 'toList';
|
||||
$config->mail->browse->dtable->fieldList['toList']['title'] = $lang->mail->toList;
|
||||
$config->mail->browse->dtable->fieldList['toList']['type'] = 'text';
|
||||
$config->mail->browse->dtable->fieldList['toList']['sortType'] = true;
|
||||
$config->mail->browse->dtable->fieldList['toList']['required'] = true;
|
||||
$config->mail->browse->dtable->fieldList['toList']['delimiter'] = ',';
|
||||
$config->mail->browse->dtable->fieldList['toList']['group'] = 2;
|
||||
|
||||
$config->mail->browse->dtable->fieldList['subject']['name'] = 'subject';
|
||||
$config->mail->browse->dtable->fieldList['subject']['title'] = $lang->mail->subject;
|
||||
|
||||
@@ -233,9 +233,12 @@ class mail extends control
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
$pager = new pager($recTotal, $recPerPage, $pageID);
|
||||
|
||||
$queueList = $this->mail->getQueue('all', $orderBy, $pager, false);
|
||||
foreach($queueList as $queue) $queue->toList .= ',' . $queue->ccList;
|
||||
|
||||
$this->view->title = $this->lang->mail->browse;
|
||||
|
||||
$this->view->queueList = $this->mail->getQueue('all', $orderBy, $pager, false);
|
||||
$this->view->queueList = $queueList;
|
||||
$this->view->pager = $pager;
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter');
|
||||
|
||||
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
$config->mail->browse->dtable->fieldList['toList']['map'] = $users;
|
||||
$canBatchDelete = hasPriv('mail', 'batchDelete');
|
||||
$queueList = initTableData($queueList, $config->mail->browse->dtable->fieldList);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user