Skip to content

Commit f544db8

Browse files
committed
[spalenque] - #13845 * add expect to learn field as data option in track report
1 parent 46e7893 commit f544db8

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

summit/code/infrastructure/repositories/SapphireSummitPresentationRepository.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,10 @@ public function searchByTrackPaged($summit_id,$page,$page_size,$sort,$sort_dir,$
743743
$query .= "E.Abstract AS abstract,";
744744
}
745745

746+
if (in_array('expect_to_learn',$filters['show_col'])) {
747+
$query .= "P.AttendeesExpectedLearnt AS expect_to_learn,";
748+
}
749+
746750
$query .= "P.Status AS status";
747751

748752
$query .= $query_body . $query_where . $query_group . " ORDER BY {$sort} {$sort_dir}";

summit/code/interfaces/restfull_api/SummitAppReportsExportApi.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,9 @@ public function exportPresentationsByTrackReport(SS_HTTPRequest $request){
566566
if (isset($event['abstract']))
567567
$event['abstract'] = strip_tags($event['abstract']);
568568

569+
if (isset($event['expect_to_learn']))
570+
$event['expect_to_learn'] = strip_tags($event['expect_to_learn']);
571+
569572
$active_sheet->fromArray($event, NULL, 'A'.$row2);
570573
}
571574

summit/ui/source/js/admin/reports/reports-admin-presentations-by-track-report.tag

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<option value="owner">Owner</option>
1414
<option value="moderator">Moderator</option>
1515
<option value="abstract">Abstract</option>
16+
<option value="expect_to_learn">Expect to learn</option>
1617
</select>
1718
</div>
1819
<div class="col-md-2">
@@ -68,8 +69,8 @@
6869
<th if={ showThis('moderator') }>Moderator</th>
6970
<th if={ showThis('owner') }>Owner</th>
7071
<th class="sortable" data-sort="company" if={ showThis('speaker') }>Org</th>
71-
7272
<th if={ showThis('abstract') }>Abstract</th>
73+
<th if={ showThis('expect_to_learn') }>Expect to Learn</th>
7374
</tr>
7475
</thead>
7576
<tbody>
@@ -87,6 +88,9 @@
8788
<td if={ showThis('abstract') }>
8889
<raw content={ presentation.abstract }></raw>
8990
</td>
91+
<td if={ showThis('expect_to_learn') }>
92+
<raw content={ presentation.expect_to_learn }></raw>
93+
</td>
9094
</tr>
9195
</tbody>
9296
</table>

0 commit comments

Comments
 (0)