[IMP] as the closing reason is not required, do not display it if none is present
authorMartin Trigaux <mat@openerp.com>
Tue, 20 May 2014 12:50:51 +0000 (14:50 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 20 May 2014 12:50:51 +0000 (14:50 +0200)
addons/website_forum/views/website_forum.xml

index 0f132c4..f596193 100644 (file)
                 </h1>
                 <div class="alert alert-info text-center" t-if="question.state == 'close'">
                     <p class="mt16">
-                        <b>The question has been closed for reason: <i t-esc="question.closed_reason_id.name"/></b>
+                        <b>The question has been closed<t t-if="question.closed_reason_id"> for reason: <i t-esc="question.closed_reason_id.name"/></t></b>
                     </p>
                     <t t-if="question.closed_uid">
                         <b>by <a t-attf-href="/forum/#{ slug(forum) }/user/#{ question.closed_uid.id }"