Merge branch 'sprint/master_lanzongjun_fixbug_lite' into 'sprint/165_package'

* fix bug classic vision

See merge request easycorp/zentaopms!2529
This commit is contained in:
朱金勇
2022-03-25 01:39:47 +00:00
2 changed files with 1 additions and 4 deletions
-2
View File
@@ -2731,8 +2731,6 @@ class userModel extends model
{
$visionList = $this->lang->visionList;
if($this->config->systemMode != 'new') unset($visionList['lite']);
foreach($visionList as $visionKey => $visionName)
{
if(strpos($this->config->visions, ",{$visionKey},") === false) unset($visionList[$visionKey]);
+1 -2
View File
@@ -82,8 +82,7 @@
<th><?php echo $lang->user->commiter;?></th>
<td><?php echo html::input('commiter', $user->commiter, "class='form-control'");?></td>
<th><?php echo $lang->user->visions;?></th>
<?php $multiple = $config->systemMode == 'new' ? 'multiple' : '';?>
<td><?php echo html::select('visions[]', $visionList, $user->visions, "class='form-control chosen' $multiple");?></td>
<td><?php echo html::select('visions[]', $visionList, $user->visions, "class='form-control chosen' multiple");?></td>
</tr>
</table>
<table align='center' class='table table-form'>