* remove user vision field if there is no other vision available, task #51318, bug #20691.

This commit is contained in:
Wenrui LI
2022-03-21 17:06:12 +08:00
parent f5d5f89ec2
commit 450f2d7d89
3 changed files with 19 additions and 9 deletions
+2 -2
View File
@@ -60,9 +60,9 @@
<th><?php echo $lang->user->password2;?></th>
<td><?php echo html::password('password2', '', "class='form-control'");?></td>
</tr>
<tr>
<?php $visionList = $this->user->getVisionList();?>
<tr <?php if(count($visionList) < 2) echo "class='hide'";?>>
<th><?php echo $lang->user->visions;?></th>
<?php $visionList = $this->user->getVisionList();?>
<td><?php echo html::checkbox('visions', $visionList, isset($visionList[$this->config->vision]) ? $this->config->vision : key($visionList), "class='form-control'");?></td>
</tr>
<tr>