summaryrefslogtreecommitdiff
path: root/edit_component.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-11 10:42:10 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-11 10:42:10 +0100
commit51195f3ae4cbc9ce3ae6f6054e75a72fdf0a5e32 (patch)
treee0004f02fc8a910a9f00cc0f6e182e0e1d14d325 /edit_component.php
parent77995206ac8bdbd8129d1daabb02cba599250795 (diff)
downloadstock-51195f3ae4cbc9ce3ae6f6054e75a72fdf0a5e32.tar.gz
stock-51195f3ae4cbc9ce3ae6f6054e75a72fdf0a5e32.tar.bz2
stock-51195f3ae4cbc9ce3ae6f6054e75a72fdf0a5e32.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'edit_component.php')
-rwxr-xr-xedit_component.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/edit_component.php b/edit_component.php
index ef2cc8f..03e4dfd 100755
--- a/edit_component.php
+++ b/edit_component.php
@@ -79,6 +79,15 @@ if( !$gContent->isValid() && !empty( $_REQUEST['title'] ) ) {
}
$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 );
$isKitlocker = $gContent->mContentId ? (bool)$gBitDb->getOne(