You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2014/03/31 22:26:03 UTC

svn commit: r1583445 - /ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/data/DataServices.xml

Author: jleroux
Date: Mon Mar 31 20:26:03 2014
New Revision: 1583445

URL: http://svn.apache.org/r1583445
Log:
A patch from Michael Brohl for "Image is not display of article in blog of content component" https://issues.apache.org/jira/browse/OFBIZ-5543

in content module,we go to blog through this link
https://demo-stable.ofbiz.apache.org/content/control/editBlog?blogContentId=BLOGROOTBIGAL
 then click on "List of  Blog Article" sub menu on this screen
https://demo-stable.ofbiz.apache.org/content/control/blogContent?blogContentId=BLOGROOTBIGAL
and then click on "Click new Art." button this will lead to new form
https://demo-stable.ofbiz.apache.org/content/control/EditBlogArticle?blogContentId=BLOGROOTBIGAL
filed the required filed and upload image and create the new article.
 then go to list of blog artilce page from this
https://demo-stable.ofbiz.apache.org/content/control/blogContent?blogContentId=BLOGROOTBIGAL
and open the newly created article then  in this aticle the image  is not dispalay
https://demo-stable.ofbiz.apache.org/content/control/ViewBlogArticle?articleContentId=10002&blogContentId=BLOGROOTBIGAL


jleroux: I don't thank Hans who should have backported a bug fix at r1129519


Modified:
    ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/data/DataServices.xml

Modified: ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/data/DataServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/data/DataServices.xml?rev=1583445&r1=1583444&r2=1583445&view=diff
==============================================================================
--- ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/data/DataServices.xml (original)
+++ ofbiz/branches/release11.04/applications/content/script/org/ofbiz/content/data/DataServices.xml Mon Mar 31 20:26:03 2014
@@ -51,7 +51,7 @@ under the License.
         </if-empty>
 
         <if-empty field="newEntity.mimeTypeId">
-            <if-not-empty field="parameters.objectInfo">
+            <if-not-empty field="parameters.uploadedFile">
                 <call-class-method class-name="org.ofbiz.content.data.DataResourceWorker" method-name="getMimeTypeWithByteBuffer" ret-field="newEntity.mimeTypeId">
                     <field field="parameters.uploadedFile" type="java.nio.ByteBuffer"/>
                 </call-class-method>