Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
b110b261
Commit
b110b261
authored
6 years ago
by
Johannes Hörmann
Browse files
Options
Downloads
Patches
Plain Diff
fix onValidation-workaround
parent
82842e57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
entity/Salesproject_entity/entityfields/volume/onValidation.js
+1
-1
1 addition, 1 deletion
...y/Salesproject_entity/entityfields/volume/onValidation.js
entity/Timetracking_entity/entityfields/minutes/onValidation.js
+1
-0
1 addition, 0 deletions
.../Timetracking_entity/entityfields/minutes/onValidation.js
with
2 additions
and
1 deletion
entity/Salesproject_entity/entityfields/volume/onValidation.js
+
1
−
1
View file @
b110b261
...
...
@@ -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
This diff is collapsed.
Click to expand it.
entity/Timetracking_entity/entityfields/minutes/onValidation.js
+
1
−
0
View file @
b110b261
...
...
@@ -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
=
""
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment