FSN#41294 AiAi bij Clone report->KIBE moet geen clone knop hebben
svn path=/Website/branches/v2017.1/; revision=34679
This commit is contained in:
@@ -27,7 +27,8 @@
|
||||
},
|
||||
"show": {
|
||||
requires: { js: ["./fac_reportx.js"] },
|
||||
buttons: show_buttons
|
||||
buttons: show_buttons,
|
||||
no_clone: S("fac_usrrap_mode") != 1
|
||||
},
|
||||
"edit": {
|
||||
requires: { js: ["./fac_reportx.js"] }
|
||||
|
||||
@@ -225,7 +225,7 @@ function scaffolding_show(model, scf_params)
|
||||
if (user.has("WEB_FACFAC") && model["REST_POST"])
|
||||
buttons.push({ title: L("lcl_scf_export"), action: "scf_export()", icon: "fa-download" });
|
||||
|
||||
if (key > 0 && model["REST_POST"])
|
||||
if (key > 0 && model["REST_POST"] && !scf_params.show.no_clone)
|
||||
buttons.push({ title: L("lcl_scf_clone"), action: "scf_clone()", icon: "copy.png" });
|
||||
|
||||
if (key > 0 && cnt > 0)
|
||||
|
||||
Reference in New Issue
Block a user