From 4c86a32b702d70cec1a85743712c663847eeabb4 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 26 May 2003 02:31:15 +0000 Subject: [PATCH] fixed some relativity bugs in them manager --- lib/WebGUI/Operation/Theme.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/WebGUI/Operation/Theme.pm b/lib/WebGUI/Operation/Theme.pm index ccfcff4cc..109651f3f 100644 --- a/lib/WebGUI/Operation/Theme.pm +++ b/lib/WebGUI/Operation/Theme.pm @@ -222,11 +222,12 @@ sub www_editTheme { my @queries = ( "select style.name as name, themeComponent.themeComponentId as componentId, 'style' as componentType from themeComponent, style - where style.styleId=themeComponent.id and themeComponent.type='style' order by name", + where style.styleId=themeComponent.id and themeComponent.type='style' + and themeComponent.themeId=$session{form}{themeId} order by name", "select collateral.name as name, themeComponent.themeComponentId as componentId, collateral.collateralType as componentType from themeComponent, collateral where collateral.collateralId=themeComponent.id and themeComponent.type=collateral.collateralType - order by name" + and themeComponent.themeId=$session{form}{themeId} order by name" ); foreach my $query (@queries) { my $sth = WebGUI::SQL->read($query); @@ -496,11 +497,12 @@ sub www_viewTheme { my @queries = ( "select style.name as name, themeComponent.themeComponentId as componentId, 'style' as componentType from themeComponent, style - where style.styleId=themeComponent.id and themeComponent.type='style' order by name", + where style.styleId=themeComponent.id and themeComponent.type='style' + and themeComponent.themeId=$session{form}{themeId} order by name", "select collateral.name as name, themeComponent.themeComponentId as componentId, collateral.collateralType as componentType from themeComponent, collateral where collateral.collateralId=themeComponent.id and themeComponent.type=collateral.collateralType - order by name" + and themeComponent.themeId=$session{form}{themeId} order by name" ); foreach my $query (@queries) { my $sth = WebGUI::SQL->read($query);