Skip to content
Snippets Groups Projects
Commit b110b261 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

fix onValidation-workaround

parent 82842e57
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ import("Entity_lib");
var volume = ProcessHandlingUtils.getOnValidationValue(vars.get("$field.VOLUME"));
var message = "";
if (!/^\d+$/.test(volume))
if (!/^\d+\.?\d*$/.test(volume))
message = translate.text("Only numbers are allowed.");
result.string(message);
\ No newline at end of file
......@@ -5,6 +5,7 @@ import("PostalAddress_lib");
import("Entity_lib");
// TODO: displayValue + contentType number crashes so we use TEXT and validate ourselve
// 1035861
var minutes = ProcessHandlingUtils.getOnValidationValue(vars.get("$field.MINUTES"));
var message = "";
......
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