This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 1159a521fc Fixed: createMissingCategoryAndProductAltUrls default
parameter handling (OFBIZ-13539)
1159a521fc is described below
commit 1159a521fc5939b8ede307b34f419442826bf448
Author: Mridul Pathak <[email protected]>
AuthorDate: Thu Sep 10 16:07:04 2026 +0530
Fixed: createMissingCategoryAndProductAltUrls default parameter handling
(OFBIZ-13539)
- Default checkCategory and checkProduct to true when neither parameter is
supplied, enabling the Create SEO admin action while continuing to support
callers specifying only one
---
.../org/apache/ofbiz/product/product/catalog/CatalogServices.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/catalog/CatalogServices.groovy
b/applications/product/src/main/groovy/org/apache/ofbiz/product/product/catalog/CatalogServices.groovy
index 4fda7c47f5..671e3438ab 100644
---
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/catalog/CatalogServices.groovy
+++
b/applications/product/src/main/groovy/org/apache/ofbiz/product/product/catalog/CatalogServices.groovy
@@ -284,8 +284,8 @@ Map createMissingCategoryAndProductAltUrls() {
int categoriesUpdated = 0
int productsNotUpdated = 0
int productsUpdated = 0
- String checkProduct = parameters.product
- String checkCategory = parameters.category
+ boolean checkCategory = parameters.category ? true : !parameters.product
+ boolean checkProduct = parameters.product ? true : !parameters.category
List prodCatalogCategoryList =
from('ProdCatalogCategory').where('prodCatalogId',
parameters.prodCatalogId).queryList()
// get all categories