Author: adrianc
Date: Sun Jun 8 17:55:44 2008 New Revision: 664599 URL: http://svn.apache.org/viewvc?rev=664599&view=rev Log: Fix for work effort simple services. No error message was generated when a party assignment failed. Internationalization note: this commit contains a new UI label. Modified: ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Modified: ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml?rev=664599&r1=664598&r2=664599&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml (original) +++ ofbiz/trunk/applications/workeffort/config/WorkEffortUiLabels.xml Sun Jun 8 17:55:44 2008 @@ -2939,6 +2939,9 @@ <value xml:lang="th">à¸à¸¥à¸¸à¹à¸¡à¸à¸¹à¹à¹à¸à¹</value> <value xml:lang="zh">ä¼å</value> </property> + <property key="WorkEffortPartyAssignmentError"> + <value xml:lang="en">Party ${parameters.partyId} with role ${parameters.roleTypeId} is already assigned to work effort Id ${parameters.workEffortId}, not adding again</value> + </property> <property key="WorkEffortPartyId"> <value xml:lang="en">Party Id</value> <value xml:lang="es">Código del participante</value> @@ -3764,7 +3767,7 @@ <value xml:lang="zh">人工æå¡ç®¡çåºç¨</value> </property> <property key="WorkEffortWorkEffortManagerMainPage"> - <value xml:lang="en">WorkEffort Manager Main Page</value> + <value xml:lang="en">Work Effort Manager Main Page</value> <value xml:lang="es">Página principal de adminstración de tareas</value> <value xml:lang="fr">Page principale de gestion des tâches</value> <value xml:lang="it">Pagina Principale Gestione Impegni di Lavoro</value> @@ -3775,13 +3778,14 @@ <value xml:lang="zh">人工æå¡é¦é¡µ</value> </property> <property key="WorkEffortWorkEffortReviewAlreadyExist"> - <value xml:lang="en">WorkEffort - Review already exist</value> + <value xml:lang="en">Work Effort - Review already exist</value> <value xml:lang="it">Impegno di Lavoro - Recensione già esistente</value> <value xml:lang="th">à¸à¸²à¸ - ยัà¸à¸à¸à¸¡à¸µà¸à¸²à¸£à¸à¸£à¸§à¸à¸ªà¸à¸à¸à¸¢à¸¹à¹à¹à¸¥à¹à¸§</value> <value xml:lang="zh">人工æå¡ - æ£æ¥å·²åå¨</value> </property> <property key="WorkEffortWorkEfforts"> <value xml:lang="en">Work Efforts</value> + <value xml:lang="es">Hojas de trabajo</value> <value xml:lang="it">Impegni di Lavoro</value> <value xml:lang="nl">Acties</value> <value xml:lang="ro">Sarcini de Lucru </value> @@ -3821,11 +3825,6 @@ <value xml:lang="th">à¸à¸³à¸«à¸à¸à¸à¸´à¸à¸à¸£à¸£à¸¡à¸à¸±à¹à¸à¸à¸à¸à¸à¸²à¸£à¸à¸³à¸à¸²à¸à¸à¸¶à¸à¸ªà¸à¸²à¸à¸°à¸à¸à¸à¸à¸¹à¹à¹à¸à¹</value> <value xml:lang="zh">æå·¥ä½æµè¡å¨ææ´¾ç»ç¨æ·è§è²</value> </property> - <property key="WorkEfforts"> - <value xml:lang="en">WorkEfforts</value> - <value xml:lang="es">Hojas de trabajo</value> - <value xml:lang="th">à¸à¸²à¸</value> - </property> <property key="WorkEffortAgreementAppls"> <value xml:lang="en">Agreement Appls</value> </property> Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=664599&r1=664598&r2=664599&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original) +++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Sun Jun 8 17:55:44 2008 @@ -227,9 +227,11 @@ </entity-and> <if-not-empty field-name="currentAssignments"> <first-from-list entry-name="firstAssignment" list-name="currentAssignments"/> - <log level="info" message="Party: ${parameters.partyId} with role ${parameters.roleTypeId} already assigned to workEffortId ${parameters.workEffortId} startDate: ${firstAssignment.startDate}, not adding again"></log> - <return/> + <add-error> + <fail-property resource="WorkEffortUiLabels" property="WorkEffortPartyAssignmentError"/> + </add-error> </if-not-empty> + <check-errors/> <make-value value-name="newEntity" entity-name="WorkEffortPartyAssignment"/> |
Free forum by Nabble | Edit this page |