浏览代码

Fix conflicting ID

Alan Lam 2 年之前
父节点
当前提交
4a7e8f6f05
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      views/modals/new_sale.php

+ 2 - 2
views/modals/new_sale.php

@@ -44,8 +44,8 @@ foreach($customers as $customer) {
 				</div>
 
 				<div class="mb-3">
-					<label class="form-label" for="location-id"><?= htmlspecialchars(__("Location")) ?></label>
-					<select class="form-select" name="location_id" id="location-id">
+					<label class="form-label" for="new-sale-location-id"><?= htmlspecialchars(__("Location")) ?></label>
+					<select class="form-select" name="location_id" id="new-sale-location-id">
 						<?php
 						HtmlHelper::renderOptions($location_options, $default_location_id);
 						?>