diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-01 12:33:49 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-01 12:33:49 +0100 |
| commit | a16e3d92444befcbd857d3bf00381b559d494d20 (patch) | |
| tree | bf0721976ad9111721c6f19a1d1522dc35d23d5e /list_stock.php | |
| parent | f951a616d235b1c1fe74e8cba4ecb0039749575d (diff) | |
| download | stock-a16e3d92444befcbd857d3bf00381b559d494d20.tar.gz stock-a16e3d92444befcbd857d3bf00381b559d494d20.tar.bz2 stock-a16e3d92444befcbd857d3bf00381b559d494d20.zip | |
Fix two-arg constructor signature to work with getLibertyObject/getNewObject
All three classes only accepted one parameter; getNewObject passes (null, $contentId)
so the content_id was silently dropped and the object never loaded. Coalesce
$pContentId ?? $pPrimaryId preserves all existing single-arg call sites.
Also guard explodeFromAssembly against non-numeric xkey via SIMILAR TO filter.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'list_stock.php')
0 files changed, 0 insertions, 0 deletions
