Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit a85530991cfcde86e6e4d346e5d743785abf7aea 1 parent bbb0868
@forsdahl forsdahl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/javascript/LeftAndMain.Tree.js
View
2  admin/javascript/LeftAndMain.Tree.js
@@ -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) {

0 comments on commit a855309

Please sign in to comment.
Something went wrong with that request. Please try again.