diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-31 10:06:48 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-31 10:06:48 +0100 |
| commit | cef2bbde0cbaa042a545f432865de11e0bc51d03 (patch) | |
| tree | 53315ea10db725ec3b99ca31c7c016b0b60f89f6 /view_component.php | |
| parent | 693acd68d2dcdbfd700a3aab6c49251552cc9be0 (diff) | |
| download | stock-cef2bbde0cbaa042a545f432865de11e0bc51d03.tar.gz stock-cef2bbde0cbaa042a545f432865de11e0bc51d03.tar.bz2 stock-cef2bbde0cbaa042a545f432865de11e0bc51d03.zip | |
Remove stock_component table — use liberty_content directly
stock_component was a pure alias (component_id ↔ content_id with no
other data). All queries now target liberty_content WHERE
content_type_guid = STOCKCOMPONENT_CONTENT_TYPE_GUID directly.
- StockComponent: drop mComponentId, constructor takes content_id only
- All component_id URL params changed to content_id
- Import files, edit_movement, sitemap updated to match
- BOM xref templates updated (xref column migrated from component_id
to content_id in live DB — 130 rows)
- StockAssembly loadXrefList/enrichXrefDisplay join liberty_content
directly; loadComponents drops stock_component LEFT JOIN
- StockBase: previous/next keys renamed to _content_id
stock_component table left in schema_inc.php pending DB reset.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'view_component.php')
| -rwxr-xr-x | view_component.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view_component.php b/view_component.php index c96f90c..6f8ec93 100755 --- a/view_component.php +++ b/view_component.php @@ -28,7 +28,7 @@ if( is_object( $gGallery ) && $gGallery->isCommentable() ) { $comments_vars = [ 'stockcomponent' ]; $comments_prefix_var='stockcomponent:'; $comments_object_var='stockcomponent'; - $comments_return_url = $_SERVER['SCRIPT_NAME']."?component_id=" . $gContent->mComponentId ?? $gContent->mContentId; + $comments_return_url = $_SERVER['SCRIPT_NAME']."?content_id=".$gContent->mContentId; include_once LIBERTY_PKG_INCLUDE_PATH.'comments_inc.php'; } |
