dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #07491
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2141: Fixed bug: Dataentryform editor saved populated html dedicated for the editor if not saving throu...
------------------------------------------------------------
revno: 2141
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Thu 2010-09-16 18:18:08 +0200
message:
Fixed bug: Dataentryform editor saved populated html dedicated for the editor if not saving through the gui/clicking cancel
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/dataentryform/ViewDataEntryFormAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewDataEntryForm.vm
--
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-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/dataentryform/ViewDataEntryFormAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/dataentryform/ViewDataEntryFormAction.java 2010-08-31 14:34:31 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/dataentryform/ViewDataEntryFormAction.java 2010-09-16 16:18:08 +0000
@@ -115,6 +115,7 @@
{
return status;
}
+
private Boolean autoSave;
public Boolean getAutoSave()
@@ -122,6 +123,13 @@
return autoSave;
}
+ private String htmlCode;
+
+ public String getHtmlCode()
+ {
+ return htmlCode;
+ }
+
// -------------------------------------------------------------------------
// Execute
// -------------------------------------------------------------------------
@@ -140,7 +148,7 @@
else
{
status = "EDIT";
- dataEntryForm.setHtmlCode( prepareDataEntryFormCode( dataEntryForm.getHtmlCode() ) );
+ htmlCode = prepareDataEntryFormCode( dataEntryForm.getHtmlCode() );
}
autoSave = (Boolean) userSettingService.getUserSetting( UserSettingService.AUTO_SAVE_DATA_ENTRY_FORM, false );
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewDataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewDataEntryForm.vm 2010-09-16 05:35:12 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewDataEntryForm.vm 2010-09-16 16:18:08 +0000
@@ -58,7 +58,7 @@
<th>$i18n.getString( "dataentryform_design" )</th>
</tr>
<tr>
- <td><textarea id="designTextarea" name="designTextarea" >#if($status == "EDIT") $dataEntryForm.htmlCode #end</textarea></td>
+ <td><textarea id="designTextarea" name="designTextarea" >#if($status == "EDIT")${htmlCode}#end</textarea></td>
</tr>
<tr>
<td>