Skip to content

Commit

Permalink
Edit tracker = Error #929
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsoft-kras committed Jan 4, 2017
1 parent cde9940 commit 8860960
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -6762,10 +6762,9 @@ procedure TMainForm.AddTracker(EditMode: boolean);
args:=TJSONObject.Create;
args.Add('ids', TJSONArray.Create([torid]));
if EditMode then
args.Add('trackerReplace', TJSONArray.Create([id, UTF8Decode(edTracker.Text)])) //UTF8Decode
args.Add('trackerReplace', TJSONArray.Create([id, UTF8Encode(edTracker.Text)])) //fix bag
else
args.Add('trackerAdd', TJSONArray.Create([UTF8Decode(edTracker.Text)])); //UTF8Decode

args.Add('trackerAdd', TJSONArray.Create([UTF8Encode(edTracker.Text)])); //fix bag
req.Add('arguments', args);
args:=nil;
args:=RpcObj.SendRequest(req, False);
Expand Down

0 comments on commit 8860960

Please sign in to comment.