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

[Projekt: Entwicklung - Neon][TicketNr.: 1085665][Aktion UPDATE für Actions verfügbar]

parent 55cd9446
No related branches found
No related tags found
No related merge requests found
...@@ -22,14 +22,7 @@ switch (accesstype) { ...@@ -22,14 +22,7 @@ switch (accesstype) {
case "F": case "F":
actions = [["view", "view"]]; actions = [["view", "view"]];
var entityStructure = project.getEntityStructure(vars.get("$param.EntityTitle_param")); var entityStructure = project.getEntityStructure(vars.get("$param.EntityTitle_param"));
var selectedField = ""; var selectedField = vars.get("$param.Field_param") ? entityStructure.fields[vars.get("$param.Field_param")] : "";
for (var field in entityStructure.fields) {
if (field == vars.get("$param.Field_param")) {
selectedField = entityStructure.fields[field];
break;
}
}
// show 'update' if selected field is not an action // show 'update' if selected field is not an action
if (selectedField.fieldType != "ACTION") { if (selectedField.fieldType != "ACTION") {
......
...@@ -176,6 +176,7 @@ ...@@ -176,6 +176,7 @@
</entityParameter> </entityParameter>
<entityParameter> <entityParameter>
<name>Field_param</name> <name>Field_param</name>
<valueProcess>%aditoprj%/entity/PermissionDetail_entity/entityfields/permissionactions/children/field_param/valueProcess.js</valueProcess>
</entityParameter> </entityParameter>
<entityParameter> <entityParameter>
<name>EntityTitle_param</name> <name>EntityTitle_param</name>
......
import("system.vars");
import("system.result");
result.string(vars.get("$field.FIELD"));
\ No newline at end of file
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