diff --git a/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy b/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy index bb8162a..1363c42 100644 --- a/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy +++ b/grails-app/controllers/net/codebuilders/mybusiness/ProductController.groovy @@ -166,7 +166,7 @@ class ProductController { } if (params.category) { - must { keyword "productCategories.description", params.category } + must { keyword "productCategories.id", params.category } } if (SpringSecurityUtils.ifNotGranted('ROLE_ADMIN')) { @@ -209,7 +209,7 @@ class ProductController { } if (params.category) { - must { keyword "productCategories.description", params.category } + must { keyword "productCategories.id", params.category } } @@ -234,7 +234,7 @@ class ProductController { wildcard "number", "*" if (params.category) { - must { keyword "productCategories.description", params.category } + must { keyword "productCategories.id", params.category } } if (SpringSecurityUtils.ifNotGranted('ROLE_ADMIN')) { @@ -261,7 +261,7 @@ class ProductController { wildcard "number", "*" if (params.category) { - must { keyword "productCategories.description", params.category } + must { keyword "productCategories.id", params.category } } if (SpringSecurityUtils.ifNotGranted('ROLE_ADMIN')) {