Skip to content

Commit 3cb9cb7

Browse files
committed
fix sql query
1 parent 602ecbf commit 3cb9cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cls/ZPM/Package.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,9 @@ ClassMethod GetLatest(searchTerms As %DynamicArray = "", manifest As %String = "
525525
Set params = 0
526526
While iter.%GetNext(.key , .value ) {
527527
if (key=0) {
528-
Set searchCondition = searchCondition _ " ((name %MATCHES ?) OR (description %MATCHES ?) OR (keywords %MATCHES ?)) "
528+
Set searchCondition = searchCondition _ " ((p1.name %MATCHES ?) OR (p1.description %MATCHES ?) OR (p1.keywords %MATCHES ?)) "
529529
} else {
530-
Set searchCondition = searchCondition _ " OR ((name %MATCHES ?) OR (description %MATCHES ?) OR (keywords %MATCHES ?))"
530+
Set searchCondition = searchCondition _ " OR ((p1.name %MATCHES ?) OR (p1.description %MATCHES ?) OR (p1.keywords %MATCHES ?))"
531531
}
532532
Set params(params+1) = value
533533
Set params(params+2) = value

0 commit comments

Comments
 (0)