Fix AFLOW-22
This commit is contained in:
parent
720a969484
commit
09e74f9eb6
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="itemModifyModalStorageLocation" class="form-label">Select a storage location</label>
|
<label for="itemModifyModalStorageLocation" class="form-label">Select a storage location</label>
|
||||||
<select class="form-select" id="itemModifyModalStorageLocation" name="storageLocation">
|
<select class="form-select" id="itemModifyModalStorageLocation" name="storageLocationId">
|
||||||
<option value=""><i>Do not assign a storage location</i></option>
|
<option value=""><i>Do not assign a storage location</i></option>
|
||||||
<% it.storeLocs.forEach(function(locs){ %>
|
<% it.storeLocs.forEach(function(locs){ %>
|
||||||
<option value="<%= locs.id %>"><%= locs.name %></option>
|
<option value="<%= locs.id %>"><%= locs.name %></option>
|
||||||
|
@ -41,6 +41,7 @@ function getDataForEdit(id) {
|
|||||||
|
|
||||||
// Select the correct option in the dropdown
|
// Select the correct option in the dropdown
|
||||||
const modal_itemCategoryOptions = modal_itemCategory.options;
|
const modal_itemCategoryOptions = modal_itemCategory.options;
|
||||||
|
modal_itemCategoryOptions[0].selected = true;
|
||||||
for (let i = 0; i < modal_itemCategoryOptions.length; i++) {
|
for (let i = 0; i < modal_itemCategoryOptions.length; i++) {
|
||||||
if (modal_itemCategoryOptions[i].value == result.categoryId) {
|
if (modal_itemCategoryOptions[i].value == result.categoryId) {
|
||||||
modal_itemCategoryOptions[i].selected = true;
|
modal_itemCategoryOptions[i].selected = true;
|
||||||
@ -49,6 +50,7 @@ function getDataForEdit(id) {
|
|||||||
|
|
||||||
// Select the correct option in the dropdown
|
// Select the correct option in the dropdown
|
||||||
const modal_itemStatusOptions = modal_itemStatus.options;
|
const modal_itemStatusOptions = modal_itemStatus.options;
|
||||||
|
modal_itemStatusOptions[0].selected = true;
|
||||||
for (let i = 0; i < modal_itemStatusOptions.length; i++) {
|
for (let i = 0; i < modal_itemStatusOptions.length; i++) {
|
||||||
if (modal_itemStatusOptions[i].value == result.statusId) {
|
if (modal_itemStatusOptions[i].value == result.statusId) {
|
||||||
modal_itemStatusOptions[i].selected = true;
|
modal_itemStatusOptions[i].selected = true;
|
||||||
@ -57,6 +59,7 @@ function getDataForEdit(id) {
|
|||||||
|
|
||||||
// Select the correct option in the dropdown
|
// Select the correct option in the dropdown
|
||||||
const modal_itemStorageLocationOptions = modal_itemStorageLocation.options;
|
const modal_itemStorageLocationOptions = modal_itemStorageLocation.options;
|
||||||
|
modal_itemStorageLocationOptions[0].selected = true;
|
||||||
for (let i = 0; i < modal_itemStorageLocationOptions.length; i++) {
|
for (let i = 0; i < modal_itemStorageLocationOptions.length; i++) {
|
||||||
if (modal_itemStorageLocationOptions[i].value == result.storageLocationId) {
|
if (modal_itemStorageLocationOptions[i].value == result.storageLocationId) {
|
||||||
modal_itemStorageLocationOptions[i].selected = true;
|
modal_itemStorageLocationOptions[i].selected = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user