diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-11 14:14:49 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-11 14:14:49 +0100 |
| commit | 00956ec62ba579685e35d515d469c9dd2c458c8a (patch) | |
| tree | 516c7f748338dffba7d5716af478bea791cfe154 | |
| parent | eaa8de0f28f296e889593bc2221d29917aa15712 (diff) | |
| download | stock-00956ec62ba579685e35d515d469c9dd2c458c8a.tar.gz stock-00956ec62ba579685e35d515d469c9dd2c458c8a.tar.bz2 stock-00956ec62ba579685e35d515d469c9dd2c458c8a.zip | |
StockBase: use xrefType()->loadContent() in loadXrefInfo()
Follows the new LibertyXrefType::loadContent() pattern — drops the direct
LibertyXrefInfo construction now that loadContent() handles the dual-guid
package/content-type query internally.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rwxr-xr-x | includes/classes/StockBase.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/classes/StockBase.php b/includes/classes/StockBase.php index 4becb5d..9c5f5b6 100755 --- a/includes/classes/StockBase.php +++ b/includes/classes/StockBase.php @@ -37,8 +37,7 @@ abstract class StockBase extends LibertyContent * content_id (xref column) to the contact's lc.title. */ public function loadXrefInfo(): void { - $this->mXrefInfo = new \Bitweaver\Liberty\LibertyXrefInfo( $this->mContentTypeGuid, 'stock' ); - $this->mXrefInfo->load( $this->mContentId ); + $this->mXrefInfo = $this->xrefType()->loadContent( $this->mContentId ); if( empty( $this->mXrefInfo ) ) return; $supplierGroup = $this->mXrefInfo->mGroups['supplier'] ?? null; if( !$supplierGroup || empty( $supplierGroup->mXrefs ) ) return; |
