Skip to content

Commit

Permalink
[fix] Milestone screen project selector showing all types.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Apr 23, 2024
1 parent 5d5d473 commit b44fce9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .idea/leantime-oss.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions app/Domain/Tickets/Templates/milestoneDialog.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@

<label class="control-label"><?=$tpl->__('label.project') ?></label>
<select name="projectId" class="tw-w-full">
<?php foreach($allAssignedprojects as $project) { ?>
<?php foreach($allAssignedprojects as $project) {
if(empty($project['type']) || $project['type'] == "project"){
?>
<option value="<?=$project['id'] ?>"
<?php
if($currentMilestone->projectId == $project['id']) {
Expand All @@ -43,7 +45,8 @@
}
?>
><?=$tpl->escape($project["name"]); ?></option>
<?php } ?>
<?php }
} ?>
</select>

<label><?php echo $tpl->__('label.todo_status'); ?></label>
Expand Down

0 comments on commit b44fce9

Please sign in to comment.