Add collection_id param to document chooser pagination handling. Fix #5913 (#6529)

Make sure document chooser pagination preserves the selected collection when moving between pages

Co-authored-by: Alexander Sajzew <a.sajzew@alexsa.de>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
pull/6585/head
Alex Sa 2020-12-02 13:41:37 +01:00 zatwierdzone przez GitHub
rodzic 65d0cdf55f
commit 01d3854696
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
4 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -6,6 +6,7 @@ Changelog
* Added support for Python 3.9
* Fix: Stop menu icon overlapping the breadcrumb on small viewport widths in page editor (Karran Besen)
* Fix: Make sure document chooser pagination preserves the selected collection when moving between pages (Alex Sa)
2.11.2 (17.11.2020)

Wyświetl plik

@ -485,6 +485,7 @@ Contributors
* David Bramwell
* Naglis Jonaitis
* Luis Nell
* Alex Sa
Translators
===========

Wyświetl plik

@ -21,6 +21,7 @@ Bug fixes
~~~~~~~~~
* Stop menu icon overlapping the breadcrumb on small viewport widths in page editor (Karran Besen)
* Make sure document chooser pagination preserves the selected collection when moving between pages (Alex Sa)
Upgrade considerations

Wyświetl plik

@ -54,6 +54,8 @@ DOCUMENT_CHOOSER_MODAL_ONLOAD_HANDLERS = {
dataObj = {p: page};
}
dataObj.collection_id = $('#collection_chooser_collection_id').val();
request = $.ajax({
url: searchUrl,
data: dataObj,