Skip to content

Commit fbd0249

Browse files
committed
apijson-viewedit: fix @ROLE
1 parent ffdca01 commit fbd0249

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

uliweb_apijson/apijson/templates/vue/inc_apijson_viewedit.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
data: function(){
2626
return {
2727
l_request_tag: null,
28-
role: "{{=role}}",
28+
role: "{{=role or ''}}",
2929
row: {},
3030
row_saved: {},
3131
viewedit_items: [],
@@ -38,8 +38,10 @@
3838
init_viewedit: function(){
3939
var params = {}
4040
var model_params = {
41-
"id":this.id,
42-
"@role":this.role
41+
"id":this.id
42+
}
43+
if (this.role!='') {
44+
model_params["@role"] = this.role
4345
}
4446
params[this.model_name] = model_params
4547
var thisp = this
@@ -89,6 +91,9 @@
8991
this.row[d.key] = d.value
9092
}
9193
}
94+
if (this.role!='') {
95+
record_params["@role"] = this.role
96+
}
9297
params[this.l_request_tag] = record_params
9398
params = this.ajax_hook("apijson_put","update",params)
9499
var thisp = this

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