You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/09/27 16:35:08 UTC
svn commit: r580024 - in /ofbiz/trunk/applications/content:
script/org/ofbiz/content/data/DataServices.xml
widget/content/DataResourceForms.xml
Author: jacopoc
Date: Thu Sep 27 07:35:07 2007
New Revision: 580024
URL: http://svn.apache.org/viewvc?rev=580024&view=rev
Log:
Fix for bug reported by David Goodenough in OFBIZ-1269: error updating html content for data resource.
Modified:
ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml
Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml?rev=580024&r1=580023&r2=580024&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml (original)
+++ ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml Thu Sep 27 07:35:07 2007
@@ -388,7 +388,6 @@
<simple-method method-name="updateElectronicText" short-description="Update Electronic Text">
<make-value entity-name="ElectronicText" value-name="lookupKeyValue"/>
-<log level="always" message="updateElectronicText, lookupKeyValue: ${lookupKeyValue}"/>
<set-pk-fields map-name="parameters" value-name="lookupKeyValue"/>
<find-by-primary-key entity-name="ElectronicText" map-name="lookupKeyValue" value-name="lookedUpValue"/>
Modified: ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml?rev=580024&r1=580023&r2=580024&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml (original)
+++ ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml Thu Sep 27 07:35:07 2007
@@ -383,6 +383,7 @@
<actions>
<entity-one entity-name="ElectronicText" value-name="electronicText"/>
</actions>
+ <alt-target use-when="electronicText==null" target="addHtmlText"/>
<auto-fields-entity entity-name="ElectronicText"/>
<field name="dataResourceId" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext"><display/></field>
<field name="textData" id-name="textData"><textarea cols="120" rows="20" visual-editor-enable="true"/></field>