You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/05/04 05:49:42 UTC
svn commit: r771168 -
/ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml
Author: hansbak
Date: Mon May 4 03:49:42 2009
New Revision: 771168
URL: http://svn.apache.org/viewvc?rev=771168&view=rev
Log:
the system is currently unusable because the default scheme does not exist. to avoid these kind of problems in the future and also with new theme developments this change will at least show the 'good old' ofbiz scheme so the system can be used
Modified:
ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml
Modified: ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml?rev=771168&r1=771167&r2=771168&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml (original)
+++ ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml Mon May 4 03:49:42 2009
@@ -208,6 +208,14 @@
<order-by field-name="sequenceId"/>
</entity-condition>
<if-empty field="resourceList">
+ <!-- if not found use the good old initial ofbiz theme so the system will at least start up and will be usable -->
+ <entity-condition list="resourceList" entity-name="VisualThemeResource" use-cache="true">
+ <condition-expr field-name="visualThemeId" value="FLAT_GREY"/>
+ <order-by field-name="resourceTypeEnumId"/>
+ <order-by field-name="sequenceId"/>
+ </entity-condition>
+ </if-empty>
+ <if-empty field="resourceList">
<add-error><fail-property property="CommonVisualThemeResourcesNotFound" resource="CommonUiLabels"/></add-error>
<check-errors/>
</if-empty>