* [misc] fix isFromDoc not defined in lite vision.
This commit is contained in:
@@ -104,6 +104,7 @@ window.setStatistics = function(element, checkedIDList)
|
||||
*/
|
||||
window.renderCell = function(result, info)
|
||||
{
|
||||
const isFromDoc = this.props.isFromDoc;
|
||||
if(isFromDoc) return result;
|
||||
|
||||
const task = info.row.data;
|
||||
|
||||
@@ -18,7 +18,6 @@ $queryMenuLink = createLink('execution', 'task', "executionID={$execution->id}&s
|
||||
$isFromDoc = $from === 'doc';
|
||||
|
||||
jsVar('blockID', $blockID);
|
||||
jsVar('isFromDoc', $isFromDoc);
|
||||
jsVar('canAssignTo', common::canModify('execution', $execution) && hasPriv('task', 'assignTo'));
|
||||
if($isFromDoc)
|
||||
{
|
||||
@@ -327,6 +326,7 @@ dtable
|
||||
set::onRenderCell(jsRaw('window.renderCell')),
|
||||
set::modules($modulePairs),
|
||||
set::footToolbar($footToolbar),
|
||||
set::isFromDoc($isFromDoc),
|
||||
set::footPager(usePager(array
|
||||
(
|
||||
'recPerPage' => $pager->recPerPage,
|
||||
|
||||
Reference in New Issue
Block a user