Skip to content

Commit ffdca01

Browse files
committed
apijson-table: fix @ROLE in apijson-delete
1 parent 65d9b84 commit ffdca01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

uliweb_apijson/apijson/templates/vue/inc_apijson_table.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,13 @@
384384
var params = {
385385
"@tag": thisp.l_request_tag
386386
}
387-
params[thisp.l_request_tag] = {
387+
var model_params = {
388388
"id": thisp.delete_params.row.id
389389
}
390+
if (thisp.role!="") {
391+
model_params["@role"] = thisp.role
392+
}
393+
params[thisp.l_request_tag] = model_params
390394
params = thisp.ajax_hook("apijson_delete","delete",params)
391395
$.ajax({
392396
type: "POST",

0 commit comments

Comments
 (0)