Fixed location_id handling when FEATURE_FLAG_STOCK_LOCATION_TRACKING is disabled (fixes #532)

This commit is contained in:
Bernd Bestel
2020-01-31 21:27:51 +01:00
parent 170c7627fd
commit b8c6ac6905
7 changed files with 7 additions and 19 deletions

View File

@@ -57,8 +57,6 @@
</select>
<div class="invalid-feedback">{{ $__t('A location is required') }}</div>
</div>
@else
<input type="hidden" name="location_id" id="location_id" value="1">
@endif
<div class="form-group">

View File

@@ -75,8 +75,6 @@
'locations' => $locations,
'hint' => $__t('This will apply to added products')
))
@else
<input type="hidden" name="location_id" id="location_id" value="1">
@endif
<button id="save-inventory-button" class="btn btn-success">{{ $__t('OK') }}</button>

View File

@@ -91,11 +91,9 @@
'locations' => $locations,
'isRequired' => false
))
@else
<input type="hidden" name="location_id" id="location_id" value="1">
@endif
<button id="save-purchase-button" class="btn btn-success">{{ $__t('OK') }}</button>
<button id="save-purchase-button" class="btn btn-success d-block">{{ $__t('OK') }}</button>
</form>
</div>