|
Author: mrisaliti
Date: Fri Jan 7 18:48:50 2011 New Revision: 1056455 URL: http://svn.apache.org/viewvc?rev=1056455&view=rev Log: Some error due to field-message --> field-property migration Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountGlPostServices.xml ofbiz/trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountGlPostServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountGlPostServices.xml?rev=1056455&r1=1056454&r2=1056455&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountGlPostServices.xml (original) +++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountGlPostServices.xml Fri Jan 7 18:48:50 2011 @@ -104,23 +104,23 @@ under the License. <!-- Make sure we have the glAccountId, glAccountIdOffset, organizationPartyId --> <if-empty field="quickCreateAcctgTransAndEntries.debitGlAccountId"> + <set field="creditDebit" value="Debit"/> + <set field="requiredField" value="glAccountId"/> <add-error> - <set field="creditDebit" value="Debit"/> - <set field="requiredField" value="glAccountId"/> <fail-property resource="AccountingErrorUiLabels" property="AccountingFinAccountCannotPost"/> </add-error> </if-empty> <if-empty field="quickCreateAcctgTransAndEntries.creditGlAccountId"> + <set field="creditDebit" value="credit"/> + <set field="requiredField" value="glAccountId"/> <add-error> - <set field="creditDebit" value="credit"/> - <set field="requiredField" value="glAccountId"/> <fail-property resource="AccountingErrorUiLabels" property="AccountingFinAccountCannotPost"/> </add-error> </if-empty> <if-empty field="organizationPartyId"> + <set field="creditDebit" value=""/> + <set field="requiredField" value="organizationPartyId"/> <add-error> - <set field="creditDebit" value=""/> - <set field="requiredField" value="organizationPartyId"/> <fail-property resource="AccountingErrorUiLabels" property="AccountingFinAccountCannotPost"/> </add-error> </if-empty> Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml?rev=1056455&r1=1056454&r2=1056455&view=diff ============================================================================== --- ofbiz/trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml (original) +++ ofbiz/trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml Fri Jan 7 18:48:50 2011 @@ -185,9 +185,9 @@ </and> </condition> <then> + <set field="questionType" value="ENUMERATION"/> + <set field="requiredField" value="enumTypeId"/> <add-error> - <set field="questionType" value="ENUMERATION"/> - <set field="requiredField" value="enumTypeId"/> <fail-property resource="ContentUiLabels" property="ContentQuestionTypeRequiredField"/> </add-error> </then> @@ -200,9 +200,9 @@ </and> </condition> <then> + <set field="questionType" value="GEO"/> + <set field="requiredField" value="geoId"/> <add-error> - <set field="questionType" value="GEO"/> - <set field="requiredField" value="geoId"/> <fail-property resource="ContentUiLabels" property="ContentQuestionTypeRequiredField"/> </add-error> </then> @@ -227,9 +227,9 @@ </and> </condition> <then> + <set field="questionType" value="ENUMERATION"/> + <set field="requiredField" value="enumTypeId"/> <add-error> - <set field="questionType" value="ENUMERATION"/> - <set field="requiredField" value="enumTypeId"/> <fail-property resource="ContentUiLabels" property="ContentQuestionTypeRequiredField"/> </add-error> </then> @@ -242,9 +242,9 @@ </and> </condition> <then> + <set field="questionType" value="GEO"/> + <set field="requiredField" value="geoId"/> <add-error> - <set field="questionType" value="GEO"/> - <set field="requiredField" value="geoId"/> <fail-property resource="ContentUiLabels" property="ContentQuestionTypeRequiredField"/> </add-error> </then> |
| Free forum by Nabble | Edit this page |
