Update of /var/cvs/contributions/didactor2/src/assessment/blocks/wizards
In directory james.mmbase.org:/tmp/cvs-serv8333

Modified Files:
        email_templates.load.jspx 
Log Message:
never return empty xml, because that gives horrible NPE's


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/assessment/blocks/wizards


Index: email_templates.load.jspx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/assessment/blocks/wizards/email_templates.load.jspx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- email_templates.load.jspx   28 Nov 2008 14:39:40 -0000      1.1
+++ email_templates.load.jspx   15 Jan 2009 18:33:11 -0000      1.2
@@ -6,12 +6,17 @@
     xmlns:di="http://www.didactor.nl/ditaglib_1.0";
     xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0";>
 
-  <c:if test="${di:setting('assessment', 'send_student_email') eq 'true'}">
+  <c:choose>
+    <c:when test="${di:setting('assessment', 'send_student_email') eq 'true'}">
     <jsp:output omit-xml-declaration="no"
                 doctype-public="-//MMBase/DTD editwizard 1.0//EN"
                 
doctype-system="http://www.mmbase.org/dtd/wizard-schema_1_0.dtd";
                 doctype-root-element="relation"
                 />
     <relation destination="emails" role="posrel" />
-  </c:if>
+    </c:when>
+    <c:otherwise>
+      <nop />
+    </c:otherwise>
+  </c:choose>
 </mm:content>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to