This commit is contained in:
liumengyi
2023-03-21 05:39:04 +00:00
parent 1037f1aa82
commit 7d1d39187f
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -239,8 +239,8 @@
$totalEstimate = 0;
$canBatchEdit = common::hasPriv('story', 'batchEdit');
$canBatchClose = common::hasPriv('story', 'batchClose');
$canBatchChangeStage = common::hasPriv('story', 'batchChangeStage');
$canBatchClose = (common::hasPriv('story', 'batchClose') and $storyType != 'requirement');
$canBatchChangeStage = (common::hasPriv('story', 'batchChangeStage') and $storyType != 'requirement');
$canBatchUnlink = common::hasPriv('execution', 'batchUnlinkStory');
$canBatchToTask = (common::hasPriv('story', 'batchToTask', $checkObject) and $storyType != 'requirement');
$canBatchAssignTo = common::hasPriv($storyType, 'batchAssignTo');
@@ -365,7 +365,7 @@
echo html::commonButton($lang->close, "data-form-action='$actionLink'");
}
?>
<?php if(common::hasPriv('story', 'batchChangeStage')):?>
<?php if($canBatchChangeStage):?>
<div class="btn-group dropup">
<button data-toggle="dropdown" type="button" class="btn"><?php echo $lang->story->stageAB;?> <span class="caret"></span></button>
<ul class='dropdown-menu <?php echo count($stories) == 1 ? 'stageBox' : '';?>'>
+1
View File
@@ -104,6 +104,7 @@ class screenModel extends model
$config->previewScaleType = 'scrollY';
$componentList = json_decode($screen->scheme);
$componentList = json_decode(file_get_contents('/data/nfs/repo/screen/' . $screen->id . '.json'));
if(empty($componentList)) $componentList = array();
/* Reset height of canvas. */