Skip to content

Commit 21327ce

Browse files
committed
Fixed error message when accessing edit_part_info.php (part creation) in debug mode.
1 parent 5195aa4 commit 21327ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/nextgen/edit_part_info.php/smarty_part.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@
7373
</label>
7474
<div class="col-md-8">
7575
<input type="number" name="instock" id="instock" class="form-control" min="0" placeholder="{t}z.B. 100{/t}"
76-
value="{if !$instock_unknown}{$instock}{/if}" onkeydown="if (event.keyCode == 13) { document.getElementById('btn_enter').click();}"
77-
{if !$can_instock || $instock_unknown}disabled{/if}>
76+
value="{if !isset($instock_unknown) || !$instock_unknown}{$instock}{/if}" onkeydown="if (event.keyCode == 13) { document.getElementById('btn_enter').click();}"
77+
{if !$can_instock || (isset($instock_unknown) && $instock_unknown)}disabled{/if}>
7878
</div>
7979
<div class="col-md-2">
8080
<div class="form-check abc-checkbox form-check-inline form-control-plaintext">
8181
<input type="checkbox" class="form-check-input" name="instock_unknown" id="instock_unknown" onchange="checkInstockUnknown();"
82-
{if $instock_unknown}checked{/if} {if !$can_instock}disabled{/if}>
82+
{if isset($instock_unknown) && $instock_unknown}checked{/if} {if !$can_instock}disabled{/if}>
8383
<label class="form-check-label">{t}Unbekannt{/t}</label>
8484
</div>
8585
</div>

0 commit comments

Comments
 (0)