* Code for task showimport.
This commit is contained in:
@@ -141,12 +141,17 @@ class port extends control
|
||||
*/
|
||||
public function ajaxGetTbody($model = '', $lastID = 0, $pagerID = 1)
|
||||
{
|
||||
$filter = '';
|
||||
if($model == 'task') $filter = 'estimate';
|
||||
|
||||
$this->loadModel($model);
|
||||
$importFields = $this->config->$model->templateFields;
|
||||
$fields = $this->port->initFieldList($model, $importFields, false);
|
||||
$formatDatas = $this->port->format($model);
|
||||
$formatDatas = $this->port->format($model, $filter);
|
||||
$datas = $this->port->getPageDatas($formatDatas, $pagerID);
|
||||
|
||||
if($model == 'task') $datas = $this->task->processDatas4Task($datas);
|
||||
|
||||
$html = $this->port->buildNextList($datas->datas, $lastID, $fields, $pagerID, $model);
|
||||
die($html);
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ class portModel extends model
|
||||
$countInputVars = count($datas) * count($current); // Count all post datas
|
||||
$showSuhosinInfo = common::judgeSuhosinSetting($countInputVars);
|
||||
if($showSuhosinInfo) return extension_loaded('suhosin') ? sprintf($this->lang->suhosinInfo, $countInputVars) : sprintf($this->lang->maxVarsInfo, $countInputVars);
|
||||
return '';
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1275,6 +1275,7 @@ class portModel extends model
|
||||
$html = '';
|
||||
$key = key($list);
|
||||
$addID = 1;
|
||||
$members = $this->loadModel('user')->getTeamMemberPairs($this->session->taskPortParams['executionID'], 'execution');
|
||||
|
||||
$appendFields = $this->session->appendFields;
|
||||
$showImportCount = $this->config->port->lazyLoading ? $this->config->port->showImportCount : $this->maxImport;
|
||||
|
||||
@@ -36,6 +36,7 @@ function loadData($showmore)
|
||||
$('#showData tbody').find('.picker-select').picker({chosenMode: true}).removeClass('nopicker');
|
||||
})
|
||||
}
|
||||
|
||||
function throttle(fn, threshhold)
|
||||
{
|
||||
var last;
|
||||
|
||||
Reference in New Issue
Block a user