Fix default for product option "Never show on stock overview" (fixes #1212)

This commit is contained in:
Bernd Bestel 2020-12-22 19:10:02 +01:00
parent 937bd6b702
commit cf05be35fe
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 2 additions and 4 deletions

View File

@ -1,2 +1,3 @@
- Improved the prerequisites checker (added missing required PHP extension `ctype`) (thanks @Forceu)
- Fixed that browser camera barcode scanning did not work on the product edit page
- Fixed that the new product option "Never show on stock overview" was unintentionally set by default for new products

View File

@ -402,10 +402,7 @@
<div class="form-group">
<div class="custom-control custom-checkbox">
<input @if($mode=='create'
)
checked
@elseif($mode=='edit'
<input @if($mode=='edit'
&&
$product->hide_on_stock_overview == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="hide_on_stock_overview" name="hide_on_stock_overview" value="1">
<label class="form-check-label custom-control-label"