mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 15:06:02 -03:30
Fixed bug where organization with a & in it was causing failed api requests
This commit is contained in:
@@ -484,7 +484,7 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'JobsHelper'])
|
|||||||
function applyValidation(viewValue) {
|
function applyValidation(viewValue) {
|
||||||
basePath = GetBasePath(elm.attr('data-basePath')) || elm.attr('data-basePath');
|
basePath = GetBasePath(elm.attr('data-basePath')) || elm.attr('data-basePath');
|
||||||
query = elm.attr('data-query');
|
query = elm.attr('data-query');
|
||||||
query = query.replace(/\:value/, encodeURI(viewValue));
|
query = query.replace(/\:value/, encodeURIComponent(viewValue));
|
||||||
Rest.setUrl(`${basePath}${query}`);
|
Rest.setUrl(`${basePath}${query}`);
|
||||||
// https://github.com/ansible/ansible-tower/issues/3549
|
// https://github.com/ansible/ansible-tower/issues/3549
|
||||||
// capturing both success/failure conditions in .then() promise
|
// capturing both success/failure conditions in .then() promise
|
||||||
|
|||||||
Reference in New Issue
Block a user