Test 46663: Inline Error for Empty Question Delete#11453
Conversation
|
@kergomard please review! |
kergomard
left a comment
There was a problem hiding this comment.
Hi @matheuszych
Thank you very much for the PR. I do not think we should change anything in the UI-Components to achieve these fixes, so please remove the changes there. You can actually keep most of what you have, as far as I can see. If you feel strongly about the changes in the UI-Component, you would have to provide them separately.
Please remove the return false; on line 223 of QuestionTableActions. We never get there and if we do, things are very, very, wrong and we should notice.
Thanks again and best,
@kergomard
|
Hello @kergomard , Thank you for your feedback! If we remove the
What we could or should do is prepend the I tested everything without the UI changes, and it does not work without them. You get a valid response, but the modal does not open. To make it work, the HTML structure needs to match that of Best regards |
|
Hi @matheuszych Thank you for the explanation. I'm fine with keeping the I added a (temporary) fix for this issue that I already had handy with 73617e8 . If you want to go with a more proper fix (ie. that the correct modal-type is shown), please split the UI changes out, probably with it's own Mantis-Issue and a good explanation for the UI coordinators, and update the description of this PR so that it becomes clear, that we need to merge this as soon as the other one is merged. You will also need to revert my current fix. Thank you very much, |
See: https://mantis.ilias.de/view.php?id=46663 `QuestionsTableActions` now receives `ResponseHandler`: the delete action renders the async payload through it and returns instead of calling `exit()`. `getDeleteConfirmation()` returns a failure `MessageBox` with `msg_no_questions_selected` when no question rows are selected, otherwise the interruptive modal. The ordering-table async-message area in `tpl.orderingtable.html` uses a native `<dialog>` and a `formmethod="dialog"` close control so that message payload displays correctly; `OrderingRendererTest` expectations were updated.
This reverts commit 4b74239
|
Hello @kergomard , I moved the UI changes to a separate PR and also added the commit reversion here. This PR depends on #11577. Best regards |

https://mantis.ilias.de/view.php?id=46663
Aims to add no questions selected error message directly to question deletion modal.
@thojou