#5819 (Lino grid view doesn't use the result of override_column_headers() )
by Luc Saffre · in Developers · assigned to Luc Saffre
Kokkuvõte
How to reproduce: go prima1, sign in as robin. In the dashboard, click on "Music" behind "1A". In the panel "Exams of Music in 1A" open the detail of the first an only exam in this course. The "Exam responses of Test" has three columns labelled "1", "2" and "3". These labels should be set dynamically from the return value of ResponsesByExam.override_column_headers() which is currently commented out because it works only in plain html view, and it breaks export to xls. You can remove the commenting and switch to plain html view to see what we want to have also in grid view. In the "More" tab of the Music exam you can see that it has two "challenge" configured (Flute and Choir). These names and the max_score must become the labels of the columns 1 and 2, and the column 3 remains read-only and without label because there is no challenge with seqno 3. The maximum number of challenges per exam is currently 3, which is a configuration choice.
Children
Kommentaarid
- 1 aasta, 9 kuud ago by Luc Saffre about #5819 (Lino grid view doesn't use the result of override_column_headers() ) : It was a bug in the surrounding code. The variable 'columns' sometimes contained a list of str and sometimes a list of LayoutElement objects.
- 1 aasta, 9 kuud ago by Luc Saffre about #5819 (Lino grid view doesn't use the result of override_column_headers() ) : Reminder: @8lurry please have a look at this.
- 1 aasta, 9 kuud ago by Luc Saffre about #5819 (Lino grid view doesn't use the result of override_column_headers() ) (1 reply) : I see two test failures in welfare that look as if they were regressions caused by this.
- 1 aasta, 9 kuud ago by Sharif Mehedi about #5819 (Lino grid view doesn't use the result of override_column_headers() ) : fixed for xls action as well. changes in lino repo.
- 1 aasta, 9 kuud ago by Sharif Mehedi about #5819 (Lino grid view doesn't use the result of override_column_headers() ) : fixed for the frontend.
- 1 aasta, 10 kuud ago by Luc Saffre about #5819 (Lino grid view doesn't use the result of override_column_headers() ) : We need this feature for Lino Prima, that's whay it is relativly urgent.
- 1 aasta, 10 kuud ago by Luc Saffre about #5819 (Lino grid view doesn't use the result of override_column_headers() ) : Created new Ticket #5819 (Lino grid view doesn't use the result of override_column_headers() ).