summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-11 11:35:21 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-11 11:35:21 +0100
commit8fe3f3e074f7cbe0bc63e5ce649dd93551a52252 (patch)
tree909e4be4ebf01ecf08b7a703b47bb9b5057ee5dd /templates
parentac7e77afc9e6dadfbcaa1628d680c83801b04bef (diff)
downloadliberty-8fe3f3e074f7cbe0bc63e5ce649dd93551a52252.tar.gz
liberty-8fe3f3e074f7cbe0bc63e5ce649dd93551a52252.tar.bz2
liberty-8fe3f3e074f7cbe0bc63e5ce649dd93551a52252.zip
LibertyXrefType: convert to instance class; fix cross-guid xref join
- Remove extends LibertyBase (unused — all methods were static, no instance state needed from the hierarchy) - Add constructor(contentTypeGuid, packageGuid) so the type context is held on the object rather than threaded through every call - Runtime methods (getDisplayGroups, getTypeMarkers, getAvailableItems, getTemplateFormats, getContentTypeMarkers) become instance methods; guid params removed - Admin cross-type queries (getXrefTypeList, getContentTypeGuids, getGroupList) stay static - Fix getAvailableItems JOIN: use t.content_type_guid = s.content_type_guid so each item only joins its own group — prevents cross-matching when two guids share an x_group name (e.g. 'quantity' on stockcomponent vs stockassembly) - packageGuid IN() filter applied only in WHERE on s, not duplicated in JOIN LibertyContent: use LibertyXrefType instance via lazy xrefType() accessor - Add mXrefType property (reset to null in registerContentType) - Private xrefType() creates LibertyXrefType(mContentTypeGuid, mPackageGuid) on first call and caches it - Five delegate methods simplified to single-line instance calls Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
0 files changed, 0 insertions, 0 deletions