* Modify api param and app error.
This commit is contained in:
@@ -29,7 +29,7 @@ class tabsEntry extends baseEntry
|
||||
foreach($tabs as $menuKey)
|
||||
{
|
||||
if(!isset($this->lang->my->$menuKey)) continue;
|
||||
if(!common::hasPriv('my', $menuKey)) continue;
|
||||
if(!common::hasPriv('my', 'work')) continue;
|
||||
$label = $this->lang->my->$menuKey;
|
||||
if($menuKey == 'calendar') $label = $this->lang->my->calendarAction;
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ class userEntry extends Entry
|
||||
if(!common::hasPriv('my', 'todo')) break;
|
||||
|
||||
$control = $this->loadController('my', 'todo');
|
||||
$control->todo($this->param('date', 'all'), '', 'all', 'date_desc', 0, 0, $this->param('limit', 5), 1);
|
||||
$control->todo($this->param('date', 'before'), '', 'all', 'date_desc', 0, $this->param('limit', 5), 1);
|
||||
$data = $this->getData();
|
||||
|
||||
if($data->status == 'success')
|
||||
@@ -313,7 +313,7 @@ class userEntry extends Entry
|
||||
{
|
||||
$this->config->openMethods[] = 'my.risk';
|
||||
$control = $this->loadController('my', 'risk');
|
||||
$control->risk('createdBy', 0, 'id_desc', 0, $this->param('limit', 5), 1);
|
||||
$control->risk('assignedTo', 0, 'id_desc', 0, $this->param('limit', 5), 1);
|
||||
$data = $this->getData();
|
||||
|
||||
if($data->status == 'success')
|
||||
@@ -331,7 +331,7 @@ class userEntry extends Entry
|
||||
{
|
||||
$this->config->openMethods[] = 'my.myMeeting';
|
||||
$control = $this->loadController('my', 'myMeeting');
|
||||
$control->myMeeting('all', '', 'id_desc', 0, $this->param('limit', 5), 1);
|
||||
$control->myMeeting('futureMeeting', '', 'id_desc', 0, $this->param('limit', 5), 1);
|
||||
$data = $this->getData();
|
||||
|
||||
if($data->status == 'success')
|
||||
|
||||
Reference in New Issue
Block a user