[FIX] survey: avoid including skipped (empty) rows in results
This commit avoids the showing of '0.0' for skipped numerical_box questions and empty rows for other skipped simple entry (i.e. not multiple choice questions) in the survey results "All Data" tab. Triggered by task ID 2061937 (improve scoring in surveys) PR #44205
This commit is contained in:
committed by
Thibault Delavallée
parent
b4ac232aec
commit
6ff7c59a02
@@ -110,7 +110,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<t t-foreach="table_data" t-as="input_line">
|
||||
<tr t-att-class="'d-none' if input_line_index >= page_record_limit else ''">
|
||||
<tr t-if="not input_line.skipped" t-att-class="'d-none' if input_line_index >= page_record_limit else ''">
|
||||
<td>
|
||||
<a t-att-href="input_line.user_input_id.get_print_url()"><t t-esc="input_line_index + 1"></t></a>
|
||||
</td>
|
||||
@@ -185,7 +185,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<t t-foreach="table_data" t-as="input_line">
|
||||
<tr t-att-class="'d-none' if input_line_index >= page_record_limit else ''">
|
||||
<tr t-if="not input_line.skipped" t-att-class="'d-none' if input_line_index >= page_record_limit else ''">
|
||||
<td>
|
||||
<a t-att-href="input_line.user_input_id.get_print_url()"><t t-esc="input_line_index + 1"></t></a>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user