You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/09/29 16:22:00 UTC
[jira] [Commented] (OFBIZ-13624) getBlogEntry() only returns templateDataResourceId when the post has an image, silently corrupting the template of every text-only blog post on edit
[ https://issues.apache.org/jira/browse/OFBIZ-13624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120816#comment-18120816 ]
ASF subversion and git services commented on OFBIZ-13624:
---------------------------------------------------------
Commit 7e4a4519bff1e2c808446c0c04a08ccc831ef2fe in ofbiz-framework's branch refs/heads/trunk from Mridul Pathak
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=7e4a4519bf ]
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.
> getBlogEntry() only returns templateDataResourceId when the post has an image, silently corrupting the template of every text-only blog post on edit
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-13624
> URL: https://issues.apache.org/jira/browse/OFBIZ-13624
> Project: OFBiz
> Issue Type: Bug
> Components: content
> Affects Versions: Upcoming Branch, 24.09.07
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Major
>
> {{resultMap.templateDataResourceId = content.dataResourceId}} is gated behind {{if (imageContent)}}, 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 post now reverts the stored template. Fix: move that line out of the image gate, keeping only {{imageContentId}}/{{imageDataResourceId}} gated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)