Skip to content

Commit

Permalink
EF27: prepend table number to short desc in app export (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenrikur authored Aug 18, 2023
1 parent ef96451 commit 4e2bdf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Models/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ public static function getAllApplicationsForAppExport() {
DB::raw("CASE WHEN attends_sat = 1 THEN 'X' ELSE '' END AS 'Attends Sat'"),
DB::raw("'X' as 'Allows Use of Data'"),
DB::raw("CASE WHEN is_afterdark = 1 THEN 'X' ELSE '' END AS 'After Dark'"),
'short_desc AS Short Description',
// TODO: Temporary fix for EF27 since "Table Number" is not supported by the app backend & apps
DB::raw("TRIM('\n' FROM CONCAT(IFNULL(CONCAT('Table ', table_number), ''), '\\n\\n', IFNULL(short_desc, ''))) AS 'Short Description'"),
'artist_desc AS About the Artist',
'art_desc AS About the Art',
'profiles.website as Website',
Expand Down

0 comments on commit 4e2bdf0

Please sign in to comment.