Skip to content

Commit

Permalink
Fix relationship fieldtype request query length limit (#4484)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite authored Oct 13, 2021
1 parent d80c5ad commit 5d6cd66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,12 @@ export default {
getDataForSelections(selections) {
this.loading = true;
const params = { site: this.site, selections };
return this.$axios.get(this.itemDataUrl, { params }).then(response => {
this.$emit('item-data-updated', response.data.data);
}).finally(() => {
this.loading = false;
});
return this.$axios.post(this.itemDataUrl, { site: this.site, selections }).then(response => {
this.$emit('item-data-updated', response.data.data);
}).finally(() => {
this.loading = false;
});
},
makeSortable() {
Expand Down
2 changes: 1 addition & 1 deletion routes/cp.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@

Route::group(['prefix' => 'fieldtypes', 'namespace' => 'Fieldtypes'], function () {
Route::get('relationship', 'RelationshipFieldtypeController@index')->name('relationship.index');
Route::get('relationship/data', 'RelationshipFieldtypeController@data')->name('relationship.data');
Route::post('relationship/data', 'RelationshipFieldtypeController@data')->name('relationship.data');
Route::get('relationship/filters', 'RelationshipFieldtypeController@filters')->name('relationship.filters');
Route::post('markdown', 'MarkdownFieldtypeController@preview')->name('markdown.preview');
});
Expand Down

0 comments on commit 5d6cd66

Please sign in to comment.