Skip to content

Commit

Permalink
Fixing template for new sprint creation
Browse files Browse the repository at this point in the history
  • Loading branch information
pvi-github committed Jun 20, 2024
1 parent 0ff10e7 commit 352f71a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/Domain/Sprints/Templates/sprintdialog.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
<label><?=$tpl->__('label.project') ?></label>
<select name="projectId">
<?php foreach($allAssignedprojects as $project) { ?>
<option value="<?=$project['id'] ?>"
<?php foreach($allAssignedprojects as $project) { ?>
<option value="<?=$project['id'] ?>"
<option value="<?=$project['id'] ?>"
<?php
if($currentSprint->projectId == $project['id']) {
if(isset($currentSprint)) {
if($currentSprint->projectId == $project['id']) {
echo "selected";
}
}else if( $_SESSION['currentProject'] == $project['id']){
echo "selected";
}
?>
><?=$tpl->escape($project["name"]); ?></option>
<?php } ?>
><?=$tpl->escape($project["name"]); ?></option>
<?php } ?>
</select><br />
Expand Down

0 comments on commit 352f71a

Please sign in to comment.