Skip to content

Commit

Permalink
Avoid decoding the timezone, otherwise the ampersand will split the v…
Browse files Browse the repository at this point in the history
  • Loading branch information
hayesr committed Apr 6, 2017
1 parent f072c06 commit 519e6b0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -152,9 +152,9 @@ ManageIQ.angular.app.controller('scheduleFormController', ['$http', '$scope', 's
} else {
if ($scope.scheduleModel.action_typ === 'automation_request') {
// should ignore list of targets as this list can be really long no need to send that up to server
var moreUrlParams = $.param(miqService.serializeModelWithIgnoredFields($scope.scheduleModel, ["targets"]));
var moreUrlParams = $.param(miqService.serializeModelWithIgnoredFields($scope.scheduleModel, ["targets", "time_zone"]));
if (moreUrlParams) {
url += '&' + decodeURIComponent(moreUrlParams);
url += '&' + decodeURIComponent(moreUrlParams) + encodeURIComponent($scope.scheduleModel.time_zone);
}
}
miqService.miqAjaxButton(url, serializeFields);
Expand Down

0 comments on commit 519e6b0

Please sign in to comment.