We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffdca01 commit fbd0249Copy full SHA for fbd0249
uliweb_apijson/apijson/templates/vue/inc_apijson_viewedit.html
@@ -25,7 +25,7 @@
25
data: function(){
26
return {
27
l_request_tag: null,
28
- role: "{{=role}}",
+ role: "{{=role or ''}}",
29
row: {},
30
row_saved: {},
31
viewedit_items: [],
@@ -38,8 +38,10 @@
38
init_viewedit: function(){
39
var params = {}
40
var model_params = {
41
- "id":this.id,
42
- "@role":this.role
+ "id":this.id
+ }
43
+ if (this.role!='') {
44
+ model_params["@role"] = this.role
45
}
46
params[this.model_name] = model_params
47
var thisp = this
@@ -89,6 +91,9 @@
89
91
this.row[d.key] = d.value
90
92
93
94
95
+ record_params["@role"] = this.role
96
97
params[this.l_request_tag] = record_params
98
params = this.ajax_hook("apijson_put","update",params)
99
0 commit comments