This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 974adcf8a2 Fixed: getBlogEntry() only returns templateDataResourceId
for posts with an image (OFBIZ-13624)
974adcf8a2 is described below
commit 974adcf8a20ae803243e144f14ad051329166ae9
Author: Mridul Pathak <[email protected]>
AuthorDate: Tue Sep 29 20:03:34 2026 +0530
Fixed: getBlogEntry() only returns templateDataResourceId for posts with an
image (OFBIZ-13624)
templateDataResourceId was gated behind an image-presence check, but the
servicedef declares it as an unconditional OUT attribute, and
updateBlogEntry()'s change-detection depends on it always being present. Every
edit of a text-only blog post silently reverted its stored template selection,
since the missing field made the update path always treat the template as
changed.
---
.../src/main/groovy/org/apache/ofbiz/content/BlogServices.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/applications/content/src/main/groovy/org/apache/ofbiz/content/BlogServices.groovy
b/applications/content/src/main/groovy/org/apache/ofbiz/content/BlogServices.groovy
index 2df1e63612..f87c6bfaf2 100644
---
a/applications/content/src/main/groovy/org/apache/ofbiz/content/BlogServices.groovy
+++
b/applications/content/src/main/groovy/org/apache/ofbiz/content/BlogServices.groovy
@@ -133,9 +133,9 @@ Map getBlogEntry() {
contentId: content.contentId,
contentName: content.contentName,
description: content.description,
- statusId: content.statusId]
+ statusId: content.statusId,
+ templateDataResourceId: content.dataResourceId]
if (imageContent) {
- resultMap.templateDataResourceId = content.dataResourceId
resultMap.imageContentId = imageContent.contentId
resultMap.imageDataResourceId = imageContent.dataResourceId
}