summaryrefslogtreecommitdiff
path: root/templates/stockassembly
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-07 17:43:28 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-07 17:43:28 +0100
commitb580057fda44dc3f57bc39e612af9461c3ebca5a (patch)
treed4d7d2494b59fbae152708bc0cb78c6f6569939e /templates/stockassembly
parent9f5cb5855df61554e38a6da5d036bd78d421a2a9 (diff)
downloadstock-b580057fda44dc3f57bc39e612af9461c3ebca5a.tar.gz
stock-b580057fda44dc3f57bc39e612af9461c3ebca5a.tar.bz2
stock-b580057fda44dc3f57bc39e612af9461c3ebca5a.zip
Fix xorder lost on xref edit; widen component_order Order column
All edit_xref templates were missing a hidden xorder field, causing LibertyXref::verify() to default it to 0 on every save. Added the hidden field to all four stock edit_xref templates (bom, bompck, pck, sup). component_order.tpl: Order column widened to 7em so 4-digit xorder values are not clipped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/stockassembly')
-rw-r--r--templates/stockassembly/edit_xref_bom_item.tpl1
-rw-r--r--templates/stockassembly/edit_xref_bompck_item.tpl1
2 files changed, 2 insertions, 0 deletions
diff --git a/templates/stockassembly/edit_xref_bom_item.tpl b/templates/stockassembly/edit_xref_bom_item.tpl
index 0ab5294..e01a396 100644
--- a/templates/stockassembly/edit_xref_bom_item.tpl
+++ b/templates/stockassembly/edit_xref_bom_item.tpl
@@ -9,6 +9,7 @@
<input type="hidden" name="content_id" value="{$xrefInfo.content_id|escape}" />
<input type="hidden" name="xref_id" value="{$xrefInfo.xref_id|escape}" />
<input type="hidden" name="item" value="{$xrefInfo.item|escape}" />
+ <input type="hidden" name="xorder" value="{$xrefInfo.xorder|escape}" />
<div class="form-group">
{formlabel label="Component"}
diff --git a/templates/stockassembly/edit_xref_bompck_item.tpl b/templates/stockassembly/edit_xref_bompck_item.tpl
index 72acbd2..adb401b 100644
--- a/templates/stockassembly/edit_xref_bompck_item.tpl
+++ b/templates/stockassembly/edit_xref_bompck_item.tpl
@@ -9,6 +9,7 @@
<input type="hidden" name="content_id" value="{$xrefInfo.content_id|escape}" />
<input type="hidden" name="xref_id" value="{$xrefInfo.xref_id|escape}" />
<input type="hidden" name="item" value="{$xrefInfo.item|escape}" />
+ <input type="hidden" name="xorder" value="{$xrefInfo.xorder|escape}" />
<div class="form-group">
{formlabel label="Component"}