* [task#127003,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2024-08-28 14:07:03 +08:00
committed by 王怡栋
parent efeb4aa5a3
commit 5d00313d56
+16
View File
@@ -39,6 +39,22 @@ if($app->rawMethod == 'myspace')
$params = "type={$type}&" . $params;
}
/* Remove move doc action when doc under project/product/execution. */
foreach($tableData as $key => $row)
{
if(($row->project || $row->product || $row->execution) && isset($row->actions))
{
foreach($row->actions as $id => $action)
{
if($action['name'] == 'movedoc')
{
$tableData[$key]->actions[$id]['disabled'] = true;
break;
}
}
}
}
$docContent = dtable
(
setID('docTable'),