Closed kaleben0 closed 4 weeks ago
Daniel,
The code changes didn't seem to fix the issue, but it pointed me in the right direction.
If you edit these to lines (you probably have better way to do it) it will keep the ID & Location labels from being put in the input fields for Editing Inventory items.
/app/view/inventory.php
Line 37
<div class="inventory-item-name" id="inventory-item-name-{{ $inventory->get($i)->get('id') }}"><span><!--#{{ sprintf('%03d', $inventory->get($i)->get('id')) }}</span>--> <a href="javascript:void(0);" onclick="window.vue.expandInventoryItem('inventory-item-body-{{ $inventory->get($i)->get('id') }}');">{{ $inventory->get($i)->get('name') }}</a></div>
/app/lang/en/app.php
Line 353
'location_fmt' => '{loc}',
Hope this helps. Thank You!
Ah, ok. I see the version release now and that makes more sense. Thanks again!
Describe the bug When creating an inventory item, that works fine, but when you go to edit that same item, the ID and Location are automatically added to the fields. Unless you manually remove them, then will be saved again and be duplicated in the database entry.
To Reproduce Steps to reproduce the behavior:
Expected behavior The field headers should not be automatically added to the field while editing
Screenshots
Software:
Desktop:
Smartphone: