|
3
19th April 10:57
External User
|
Category Search incorrect after FP1 installed
I figured out why the SqlWhereClause isn't working, but I don't understand why this change was made. The following demonstrates what's going on:
CatalogSearchOptions searchOptions = new CatalogSearchOptions();
searchOptions.ClassTypes = CatalogClassTypes.CategoryClass;
searchOptions.PropertiesToReturn = "CustomProperty";
CatalogSearch search = new CatalogSearch(CommerceContext.Current.CatalogSyste m);
search.CatalogNames = catalogName;
search.CategoryName = categoryName;
search.SearchOptions = searchOptions;
search.Recursive = false;
search.SqlWhereClause = @"[CustomProperty] = 1";
Before FP1:
declare @P1 int
set @P1=0
exec dbo.[ctlg_GetCategoryResults_For_CatalogName_en-US] 0, N'CatalogName', 312752, N'[CustomProperty]', N'[CustomProperty] = 1', N' ', N' ', 1, 2147483646, 1, 1, -1, N' ', N' ', N' ', @P1 output
select @P1
After FP1:
declare @P1 int
set @P1=1
exec dbo.ctlg_GetChildCategories N'CatalogName', N'en-US', N'CatalogName', 312752, 1, 2147483646, N'[CustomProperty]', N' ', 1, @P1 output
select @P1
After FP1 without searchOptions.ClassTypes = CatalogClassTypes.CategoryClass;
declare @P1 int
set @P1=0
exec dbo.[ctlg_GetCategoryResults] N'CatalogName', N'en-US', 0, N'CatalogName', 312752, N'[CustomProperty]', N'[CustomProperty] = 1', N' ', N' ', 1, 2147483646, 1, -1, -1, N' ', N' ', N' ', @P1 output
select @P1
The stored procedure that gets called after FP1 is installed is dependent on setting the class types property in the catalog search options. This doesn't seem to appear in the do***entation, and I'm concerned that there are other changes I may be missing that are also undo***ented.
If you would comment, I'd really appreciate it.
Thanks,
Jack
--
CYNIC, n. A blackguard whose faulty vision sees things as they are, not as they ought to be. Hence the custom among the Scythians of plucking out a cynic's eyes to improve his vision.
|