Skip to content

Commit

Permalink
#894 : fix single value content format selection on write (server-demo)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Sep 21, 2020
1 parent 382e7df commit c42d7a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ angular.module('resourceDirectives', [])
payload["value"] = lwResources.getTypedValue(resourceValue, resource.def.type);

// Send request
var format = scope.settings.multi.format;
var format = scope.settings.single.format;
var timeout = scope.settings.timeout.value;
$http({method: 'PUT', url: "api/clients/" + $routeParams.clientId + scope.resource.path, data: payload, headers:{'Content-Type': 'application/json'},params:{format:format, timeout:timeout}})
.success(function(data, status, headers, config) {
Expand Down

0 comments on commit c42d7a4

Please sign in to comment.