diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-31 12:10:39 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-31 12:10:39 +0100 |
| commit | 8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08 (patch) | |
| tree | 45fe227bc8a430e206706a5c5bf8169cb16bf4d2 /list_assemblies.php | |
| parent | cef2bbde0cbaa042a545f432865de11e0bc51d03 (diff) | |
| download | stock-8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08.tar.gz stock-8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08.tar.bz2 stock-8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08.zip | |
Remove assembly_id/component_id: use content_id throughout
All stock classes, templates, imports, and controllers now reference
content_id directly. StockRemote deleted (unused). StockBase: dead
methods (isMachineName, updatePosition, isEditable) removed; hash_key
aliases dropped. getList() keyed by content_id, fixing missing
content_id in row data.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'list_assemblies.php')
| -rwxr-xr-x | list_assemblies.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/list_assemblies.php b/list_assemblies.php index 91ef83d..6d7c154 100755 --- a/list_assemblies.php +++ b/list_assemblies.php @@ -12,8 +12,8 @@ global $gBitSystem, $gBitSmarty, $gStockAssembly; $gStockAssembly = new StockAssembly(); -if( !empty( $_REQUEST['assembly_id'] ) && is_numeric( $_REQUEST['assembly_id'] ) ) { - $parentAssembly = new StockAssembly( (int)$_REQUEST['assembly_id'], null ); +if( !empty( $_REQUEST['content_id'] ) && is_numeric( $_REQUEST['content_id'] ) ) { + $parentAssembly = new StockAssembly( (int)$_REQUEST['content_id'] ); $parentAssembly->load(); if( $parentAssembly->isValid() ) { $_REQUEST['parent_content_id'] = $parentAssembly->mContentId; |
