mirror of https://github.com/itflow-org/itflow
Bugfix: New locations are set as the primary
Bugfix: Every time you add a new location, it is marked as the primary location in the modal by default as the location_primary variable is overwritten with each iteration of a location. This PR defaults to no location being the primary, to avoid unnecessarily overwriting the primary location. Future work: Re-add fixed logic used to determine if a primary location is missing
This commit is contained in:
parent
51ac53dc50
commit
fe369a4078
|
|
@ -38,7 +38,7 @@
|
|||
<input type="text" class="form-control" name="name" placeholder="Name of location" required autofocus>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<input type="checkbox" name="location_primary" value="1" <?php if ($location_primary == 0) { echo "checked"; } ?>>
|
||||
<input type="checkbox" name="location_primary" value="1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue