Update of /var/cvs/contributions/didactor2/src/assessment/blocks/wizards
In directory james.mmbase.org:/tmp/cvs-serv7972
Modified Files:
email_templates.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.jspx
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/assessment/blocks/wizards/email_templates.jspx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- email_templates.jspx 28 Nov 2008 14:39:40 -0000 1.1
+++ email_templates.jspx 15 Jan 2009 18:27:48 -0000 1.2
@@ -6,7 +6,8 @@
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"
@@ -40,5 +41,9 @@
<relation destinationtype="emails" role="posrel" />
</action>
</list>
- </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