Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 65d9b84

Browse files
apijson-table: fix apijson-post with @ROLE
1 parent 425d3f8 commit 65d9b84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎uliweb_apijson/apijson/templates/vue/inc_apijson_table.html‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
var thisp = this
5454
return {
5555
l_request_tag: null,
56-
role: "{{=role}}",
56+
role: "{{=role or ''}}",
5757

5858
loading: false,
5959
modal_view: false,
@@ -440,6 +440,9 @@
440440
var d = thisp.add_items[k]
441441
post_params[d.key] = d.value
442442
}
443+
if (thisp.role!="") {
444+
post_params["@role"] = thisp.role
445+
}
443446
params[this.l_request_tag] = post_params
444447
params = thisp.ajax_hook("apijson_post","add",params)
445448
$.ajax({

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /