Now passing media order when calling for the list of media

This commit is contained in:
Djamil Legato
2018-05-31 09:17:53 -07:00
parent c9e9fd4a0c
commit c481067036
3 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
1. [](#bugfix)
* Fixed Undefined property: stdClass::$image in 1.8.2 [#1454](https://github.com/getgrav/grav-plugin-admin/issues/1454)
* Now passing media order when calling for the list of media
# v1.8.2
## 05/24/2018

View File

@@ -74,7 +74,8 @@ export default class PageMedia extends FilesField {
}
fetchMedia() {
const body = { uri: this.getURI() };
const order = this.container.closest('.form-field').find('[name="data[header][media_order]"]').val();
const body = { uri: this.getURI(), order };
let url = this.urls.fetch;
request(url, { method: 'post', body }, (response) => {

File diff suppressed because one or more lines are too long