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

Fix on validation in offer

parent 0ce2886c
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,8 @@ import("system.translate");
import("system.vars");
import("Context_lib");
import("Entity_lib");
import("Contact_lib");
if (ContextUtils.getCountByContactId(vars.get("$field.OBJECT_TYPE"), ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID"))) == 0) {
if (ContactUtils.getContactTypeByContactId(vars.get("$field.CONTACT_ID")) != 2 && ContextUtils.getCountByContactId(vars.get("$field.OBJECT_TYPE"), ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID"))) == 0) {
result.string(translate.text("This contact has no possible link."))
}
\ 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