You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/09/16 11:33:00 UTC
[jira] [Closed] (OFBIZ-13588) setPortalPortletAttributes doesn't clean up blank attribute values
[ https://issues.apache.org/jira/browse/OFBIZ-13588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mridul Pathak closed OFBIZ-13588.
---------------------------------
Fix Version/s: Upcoming Branch
24.09.08
Resolution: Fixed
> setPortalPortletAttributes doesn't clean up blank attribute values
> ------------------------------------------------------------------
>
> Key: OFBIZ-13588
> URL: https://issues.apache.org/jira/browse/OFBIZ-13588
> Project: OFBiz
> Issue Type: Bug
> Components: framework/common
> Affects Versions: Upcoming Branch, 24.09.07
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Minor
> Fix For: Upcoming Branch, 24.09.08
>
>
> {{setPortalPortletAttributes}} does an unconditional delete-then-recreate of every key in {{parameters}}, including blank ones. The original minilang recreated each attribute and then ran a cleanup pass that removed any attribute whose value was empty, so a blank value was never persisted. Clearing an optional field in the "edit portlet" UI now leaves a {{PortletAttribute}} row with {{attrValue=''}} instead of removing it.
> Needs fixing: skip creating (or explicitly remove) the {{PortletAttribute}} row when the corresponding value is blank/empty.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)