Skip to content

Commit

Permalink
Show the value we sent in the UI (the converted value)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Nov 18, 2015
1 parent aa87354 commit c32197f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ angular.module('resourceDirectives', [])

var rsc = {};
rsc["id"] = scope.resource.def.id;
rsc["value"] = lwResources.getTypedValue(value, scope.resource.def.type);
value = lwResources.getTypedValue(value, scope.resource.def.type);
rsc["value"] = value;

$http({method: 'PUT', url: "api/clients/" + $routeParams.clientId + scope.resource.path, data: rsc, headers:{'Content-Type': 'application/json'}})
.success(function(data, status, headers, config) {
Expand Down

0 comments on commit c32197f

Please sign in to comment.