summaryrefslogtreecommitdiff
path: root/view_component_details.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-31 10:06:48 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-31 10:06:48 +0100
commitcef2bbde0cbaa042a545f432865de11e0bc51d03 (patch)
tree53315ea10db725ec3b99ca31c7c016b0b60f89f6 /view_component_details.php
parent693acd68d2dcdbfd700a3aab6c49251552cc9be0 (diff)
downloadstock-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_details.php')
-rwxr-xr-xview_component_details.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/view_component_details.php b/view_component_details.php
index be14c61..4c473cb 100755
--- a/view_component_details.php
+++ b/view_component_details.php
@@ -25,7 +25,7 @@ if( is_object( $gGallery ) && $gGallery->isCommentable() ) {
$comments_vars = [ 'stockcomponent' ];
$comments_prefix_var='stockcomponent:';
$comments_object_var='stockcomponent';
- $comments_return_url = STOCK_PKG_URL."view_component.php?component_id=".$gContent->mContentId;
+ $comments_return_url = STOCK_PKG_URL."view_component.php?content_id=".$gContent->mContentId;
include_once LIBERTY_PKG_INCLUDE_PATH.'comments_inc.php';
}