1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

default region

This commit is contained in:
Damodar Lohani 2022-09-08 07:20:42 +00:00
parent ed81ff1263
commit 7207d6ab7a

View file

@ -227,6 +227,8 @@ $regions = $this->getParam('regions', []);
<option <?php echo ($region['default'] ?? false) ? 'selected' : '' ?> <?php echo ($region['disabled'] ?? false ) ? 'disabled' : '' ?> value="<?php echo $key ?>"><?php echo $region['name'] ?></option>
<?php endforeach; ?>
</select>
<?php else: ?>
<input type="hidden" name="region" value="<?php array_key_first($regions) ?>" class="margin-bottom-xl" />
<?php endif; ?>
<footer>