Skip to content
Snippets Groups Projects
Commit dc496f7e authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

fix #1046081: keyword-attributes: clicking in edit mode made the text dissapear

parent 9b9c81d3
No related branches found
No related tags found
No related merge requests found
import("system.result");
import("system.vars");
var type = vars.get("$field.attributeType");
var value;
switch (type)
var value = vars.get("$this.value");
if (!value)
{
case "BOOL_VALUE":
value = vars.get("$field.BOOL_VALUE");
break;
case "NUMBER_VALUE":
value = vars.get("$field.NUMBER_VALUE");
break;
case "CHAR_VALUE":
value = vars.get("$field.CHAR_VALUE");
break;
case "LONG_CHAR_VALUE":
value = vars.get("$field.LONG_CHAR_VALUE");
break;
default:
value = null;
break;
var type = vars.get("$field.attributeType");
switch (type)
{
case "BOOL_VALUE":
value = vars.get("$field.BOOL_VALUE");
break;
case "NUMBER_VALUE":
value = vars.get("$field.NUMBER_VALUE");
break;
case "CHAR_VALUE":
value = vars.get("$field.CHAR_VALUE");
break;
case "LONG_CHAR_VALUE":
value = vars.get("$field.LONG_CHAR_VALUE");
break;
default:
value = null;
break;
}
}
result.string(value);
\ 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