diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-06 10:15:47 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-06 10:15:47 +0100 |
| commit | b2ae92f41dc18de0a212e579ee4b1e3362e5a4a6 (patch) | |
| tree | cb36db6525c42c4227f7fcc386843db1824697f3 /edit_component.php | |
| parent | ccb6c9dfdcee8d10fe845b08cea9f76fd3530a70 (diff) | |
| download | stock-b2ae92f41dc18de0a212e579ee4b1e3362e5a4a6.tar.gz stock-b2ae92f41dc18de0a212e579ee4b1e3362e5a4a6.tar.bz2 stock-b2ae92f41dc18de0a212e579ee4b1e3362e5a4a6.zip | |
Refactor xref display to LibertyXrefGroup path throughout
- StockBase/StockAssembly/StockMovement: add loadXrefInfo() overrides
to enrich supplier group with contact titles and BOM group with
component titles, descriptions and pack sizes
- display_stock_assembly_inc, view/edit_component, view/edit_assembly,
view_movement: replace getXrefGroupList() with loadXrefInfo() +
assign gXrefInfo; edit pages pass allow_edit=true
- All view/edit templates: switch {section} over stockXxx_types arrays
to {foreach $gXrefInfo->mGroups as $xrefGroup} object path
- BOM and supplier group templates rewritten: $xrefGroup object,
column widths, class="table", conditional colspan
- All BOM/supplier item templates: $gContent->mInfo.$source[xref].x
-> $xrefInfo.x; $source ne 'history' -> $isHistory
- Dead code removed: list_xref_stock.tpl, view_xref_pck_item.tpl
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'edit_component.php')
| -rwxr-xr-x | edit_component.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/edit_component.php b/edit_component.php index 92a48d7..f75be10 100755 --- a/edit_component.php +++ b/edit_component.php @@ -78,7 +78,8 @@ if( !$gContent->isValid() && !empty( $_REQUEST['title'] ) ) { $gContent->mInfo['title'] = trim( $_REQUEST['title'] ); } -$gContent->mInfo['stockcomponent_types'] = $gContent->getXrefGroupList(); +$gContent->loadXrefInfo(); +$gBitSmarty->assign( 'gXrefInfo', $gContent->mXrefInfo ); $gContent->invokeServices( 'content_edit_function' ); |
