* Finish task #8194.

This commit is contained in:
holan20180123
2020-11-12 10:09:16 +08:00
parent 547ecde44d
commit a7533f722d
27 changed files with 76 additions and 76 deletions
+3 -3
View File
@@ -74,8 +74,8 @@
<?php $productName = zget($products, $product, '');?>
<?php foreach($productTasks as $task):?>
<?php
$isClosedProject = common::checkParentObjectClosed('task', $task);
$disabled = $isClosedProject ? 'disabled' : '';
$changeAllowed = common::checkObjectChangeAllowed('task', $task);
$disabled = $changeAllowed ? '' : 'disabled';
?>
<tr data-id='<?php echo $product;?>' <?php if($task == reset($productTasks)) echo "class='divider-top'";?>>
<?php if($task == reset($productTasks)):?>
@@ -102,7 +102,7 @@
</td>
<td class='c-actions'>
<?php
if(!$isClosedProject)
if($changeAllowed)
{
common::printIcon('testtask', 'cases', "taskID=$task->id", $task, 'list', 'sitemap');
common::printIcon('testtask', 'linkCase', "taskID=$task->id", $task, 'list', 'link');