Skip to content
Snippets Groups Projects
Commit 681a97a5 authored by Simon Leipold's avatar Simon Leipold
Browse files

Permissions - edit view for permissions now fills fields correctly

parent 67ce445c
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,14 @@ import("system.result");
import("system.neon");
var recordstate = vars.get("$sys.recordstate");
var entity = "";
if(vars.exists("$param.EntityTitle_param") && (recordstate == neon.OPERATINGSTATE_NEW || recordstate == neon.OPERATINGSTATE_EDIT)) {
var entity = vars.get("$param.EntityTitle_param");
if (entity != undefined && entity != null && entity != "") {
result.string(entity);
}
if(vars.exists("$param.EntityTitle_param") && recordstate == neon.OPERATINGSTATE_NEW) {
entity = vars.get("$param.EntityTitle_param");
} else {
entity = vars.get("$field.ENTITY");
}
if (entity != undefined && entity != null && entity != "") {
result.string(entity);
}
\ No newline at end of file
......@@ -3,10 +3,14 @@ import("system.result");
import("system.neon");
var recordstate = vars.get("$sys.recordstate");
var entity = "";
if(vars.exists("$param.EntityTitle_param") && (recordstate == neon.OPERATINGSTATE_NEW || recordstate == neon.OPERATINGSTATE_EDIT)) {
var entity = vars.get("$param.EntityTitle_param");
if (entity != undefined && entity != null && entity != "") {
result.string(entity);
}
if(vars.exists("$param.EntityTitle_param") && recordstate == neon.OPERATINGSTATE_NEW) {
entity = vars.get("$param.EntityTitle_param");
} else {
entity = vars.get("$field.ENTITY");
}
if (entity != undefined && entity != null && entity != "") {
result.string(entity);
}
\ No newline at end of file
......@@ -3,12 +3,15 @@ import("system.result");
import("system.neon");
var recordstate = vars.get("$sys.recordstate");
var role = "";
if (vars.exists("$param.RoleTitle_param")) {
var role = vars.get("$param.RoleTitle_param");
if(role != undefined && role != null && role != "" && (recordstate == neon.OPERATINGSTATE_NEW || recordstate == neon.OPERATINGSTATE_EDIT)) {
res = role.split("_");
result.string(res[1]);
}
if (vars.exists("$param.RoleTitle_param") && recordstate == neon.OPERATINGSTATE_NEW) {
role = vars.get("$param.RoleTitle_param");
} else {
role = vars.get("$field.ROLE");
}
if(role != undefined && role != null && role != "") {
res = role.split("_");
result.string(res[1]);
}
\ No newline at end of file
import("system.logging");
import("system.vars");
import("system.result");
import("system.neon");
let recordstate = vars.get("$sys.recordstate");
var recordstate = vars.get("$sys.recordstate");
var role = "";
if(vars.exists("$param.RoleTitle_param") && (recordstate == neon.OPERATINGSTATE_NEW || recordstate == neon.OPERATINGSTATE_EDIT)) {
var role = vars.get("$param.RoleTitle_param");
if (role != undefined && role != null && role != "") {
result.string(role);
}
}
\ No newline at end of file
if(vars.exists("$param.RoleTitle_param") && (recordstate == neon.OPERATINGSTATE_NEW)) {
role = vars.get("$param.RoleTitle_param");
} else {
role = vars.get("$field.ROLE");
}
result.string(role);
\ No newline at end of file
import("Sql_lib");
import("system.neon");
import("system.logging");
import("system.util");
import("system.db");
import("system.vars");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment