T&A 46507: Corrects sorting of questions by question type#11199
T&A 46507: Corrects sorting of questions by question type#11199matheuszych wants to merge 1 commit intoILIAS-eLearning:release_11from
Conversation
|
Hello @kergomard , we would like to get your opinion on this. Currently we achieved the wanted behavior by translating and sorting the entries directly on the database level. Is this a viable solution or should we rather do it after the results have been queried in PHP? Best regards |
|
Hi @matheuszych Ok, I would be all in favor of ordering on the database, but here there is a big "but": We MUST never access tables that do not belong to us. The database in my world does never belong to the surface of a component. We can thus not implement the ordering in this way. And then a small sidenote: Please do not call the column "ttype". It is completely unclear what "t" stands for. The columns should be called "question_type", if I'm not getting this wrong. I would kindly ask you to always be verbose on naming and so to not use abbreviations. Thanks and best, |
6729f5d to
ebc71b6
Compare
ebc71b6 to
95b5746
Compare
|
Hello @kergomard , Best regards |
https://mantis.ilias.de/view.php?id=46507
Aims to fix correct sorting of questions by question type.
@thojou