#3715 ("IndexError: list index out of range" after deleting from detail window)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
Comes now each time.
Concepts sous-jacents
Commentaires
- 5 ans, 10 mois ago by Luc Saffre about #3715 ("IndexError: list index out of range" after deleting from detail window) : The code in react.views.ApiElement.get() was a copy of the same code in extjs/views.py. Also a helper function was duplicated. I tidied up. Let's hope that I didn't forget any detail...
- 5 ans, 10 mois ago by Luc Saffre about #3715 ("IndexError: list index out of range" after deleting from detail window) : Same error message also with react. Maybe the solution is similar.
- 6 ans, 3 mois ago by Luc Saffre about #3715 ("IndexError: list index out of range" after deleting from detail window) : Fixed : when result.record_deleted is true and after_delete() called, we must return because we don't want to refresh_all again in that case.
- 6 ans, 3 mois ago by Luc Saffre about #3715 ("IndexError: list index out of range" after deleting from detail window) : After deleting a record in detail view, Lino should go to the previous record, unless we deleted the first record of the table, in which case Lino should go to the next record. And if there is no next record (i.e. we deleted the last record of the table), Lino should close the detail window and show...