From 51195f3ae4cbc9ce3ae6f6054e75a72fdf0a5e32 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Thu, 11 Jun 2026 10:42:10 +0100 Subject: stock: merge stgrp xrefs into kitlocker group at data level; revert stgrp template tag; drop sgGroup stash from component templates Co-Authored-By: Claude Sonnet 4.6 --- edit_assembly.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'edit_assembly.php') diff --git a/edit_assembly.php b/edit_assembly.php index 812dc7c..a12b979 100755 --- a/edit_assembly.php +++ b/edit_assembly.php @@ -160,6 +160,15 @@ if( $gContent->isValid() ) { } $gContent->loadXrefInfo(); +if( isset( $gContent->mXrefInfo->mGroups['stgrp'] ) ) { + if( isset( $gContent->mXrefInfo->mGroups['kitlocker'] ) ) { + $gContent->mXrefInfo->mGroups['kitlocker']->mXrefs = array_merge( + $gContent->mXrefInfo->mGroups['kitlocker']->mXrefs, + $gContent->mXrefInfo->mGroups['stgrp']->mXrefs + ); + } + unset( $gContent->mXrefInfo->mGroups['stgrp'] ); +} $gBitSmarty->assign( 'gXrefInfo', $gContent->mXrefInfo ); $gContent->invokeServices( 'content_edit_function' ); -- cgit v1.3