mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
BUG: javascript tree node updating fails when Translatable is used
Automatic tree node updating fails when for example creating a new translation, due to the update URL containing two question marks, due to the locale get parameter. Fixed by using the $.path.addSearchParams utility function, which properly checks for existing query string parameters.
This commit is contained in:
parent
bbb0868227
commit
a85530991c
@ -342,7 +342,7 @@
|
||||
self.jstree('save_selected');
|
||||
|
||||
$.ajax({
|
||||
url: this.data('urlUpdatetreenodes') + '?ids=' + ids.join(','),
|
||||
url: $.path.addSearchParams(this.data('urlUpdatetreenodes'), 'ids=' + ids.join(',')),
|
||||
dataType: 'json',
|
||||
success: function(data, xhr) {
|
||||
$.each(data, function(nodeId, nodeData) {
|
||||
|
Loading…
Reference in New Issue
Block a user