dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #04432
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1476: fixed validation excel item name when update it
------------------------------------------------------------
revno: 1476
committer: Tran Thanh Tri <Tran Thanh Tri@compaq>
branch nick: trunk
timestamp: Wed 2010-02-24 10:21:36 +0700
message:
fixed validation excel item name when update it
modified:
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/action/ValidateExcelItemAction.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/action/ValidateExcelItemAction.java'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/action/ValidateExcelItemAction.java 2010-02-23 04:26:05 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/action/ValidateExcelItemAction.java 2010-02-24 03:21:36 +0000
@@ -176,7 +176,7 @@
ExcelItem temp = excelItemGroup.getExcelItemByName( name );
- if ( excelItem != temp )
+ if ( temp != null && excelItem != temp )
{
message = i18n.getString( "name_ready_exist" );