Index: /WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py	(revision 2105)
+++ /WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py	(revision 2106)
@@ -57,4 +57,5 @@
 if slip:
     mode = "view_slip"
+    
 res,psm,ds = lt.renderLayout(layout_id= 'application',
                              schema_id= 'application',
@@ -94,8 +95,5 @@
         data[field] = ds.get(field)
 data['reg_no'] = reg_no
-if apply_pume:
-    data['application_date'] = current
-    data['status'] = "submitted"
-context.applicants_catalog.modifyRecord(**data)
+
 if apply_pume:
     if not request.has_key('confirm'):
@@ -105,4 +103,7 @@
         mode = "view"
         psm = "You successfully applied for PUME"
+        data['application_date'] = current
+        data['status'] = "submitted"
+        context.applicants_catalog.modifyRecord(**data)           
 elif create:
     if submitted:
@@ -125,4 +126,13 @@
     psm = "Content changed"
 
+res,psm_dummy,ds = lt.renderLayout(layout_id= 'application',
+                             schema_id= 'application',
+                             layout_mode = mode,
+                             context=context,
+                             mapping=validate and REQUEST,
+                             ob=object,
+                             commit = False,
+                            )
+   
 return context.apply_pume_form(rendered = res,
                             psm = psm,
