Skip to content

Commit a50af39

Browse files
committed
【fix】fix deletefeature url encode
1 parent 0285f15 commit a50af39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
root = true
33

44
[*]
5-
end_of_line = crlf
5+
end_of_line = lf
66
trim_trailing_whitespace = true
77
insert_final_newline = true
88
charset = utf-8

src/common/iServer/EditFeaturesService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class EditFeaturesService extends CommonServiceBase {
9090
jsonParameters = EditFeaturesParameters.toJsonParameters(params);
9191
if (editType === EditType.DELETE) {
9292
ids = Util.toJSON(params.IDs);
93-
me.url = Util.urlAppend(me.url, "ids=" + ids);
93+
me.url = Util.urlAppend(me.url, Util.getParameterString({ids}));
9494
method = "DELETE";
9595
jsonParameters = ids;
9696
} else if (editType === EditType.UPDATE) {

test/common/iServer/EditFeaturesServiceSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('EditFeaturesService', () => {
195195
var deleteFeaturesService = new EditFeaturesService(editServiceURL, deleteFeaturesOptions);
196196
spyOn(FetchRequest, 'commit').and.callFake((method, testUrl, params, options) => {
197197
expect(method).toBe("DELETE");
198-
expect(testUrl).toBe(editServiceURL + "/features?ids=[134]");
198+
expect(testUrl).toBe(editServiceURL + "/features?ids=%5B134%5D");
199199
expect(params).not.toBeNull();
200200
expect(options).not.toBeNull();
201201
return Promise.resolve(new Response(`{"succeed":true}`));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy