5de95e61 by Ean Schuessler

Merge branch 'BF-4602' of /home/git/repositories/brainfood/ofbiz-backbone-models

2 parents 72c41d09 07c70cdf
......@@ -21,6 +21,7 @@ define(
{
pattern: 'email',
required: Base.createRequiredChecker('ofbiz/model/EmailAddress.emailAddress'),
maxLength: 255
},
]
},
......
......@@ -16,7 +16,10 @@ define(
},
validation: {
groupName: [
Base.createRequiredValidator('ofbiz/model/PartyGroup.groupName'),
{
required: Base.createRequiredValidator('ofbiz/model/PartyGroup.groupName'),
maxLength: 100
}
],
},
});
......
......@@ -17,10 +17,16 @@ define(
},
validation: {
firstName: [
Base.createRequiredValidator('ofbiz/model/Person.firstName'),
{
required: Base.createRequiredValidator('ofbiz/model/Person.firstName'),
maxLength: 100
}
],
lastName: [
Base.createRequiredValidator('ofbiz/model/Person.lastName'),
{
required: Base.createRequiredValidator('ofbiz/model/Person.lastName'),
maxLength: 100
}
],
},
});
......
......@@ -18,13 +18,22 @@ define(
},
validation: {
address1: [
Base.createRequiredValidator('ofbiz/model/PostalAddress.address1'),
{
required: Base.createRequiredValidator('ofbiz/model/PostalAddress.address1'),
maxLength: 255
}
],
city: [
Base.createRequiredValidator('ofbiz/model/PostalAddress.city'),
{
required: Base.createRequiredValidator('ofbiz/model/PostalAddress.city'),
maxLength: 100
}
],
postalCode: [
Base.createRequiredValidator('ofbiz/model/PostalAddress.postalCode'),
{
required: Base.createRequiredValidator('ofbiz/model/PostalAddress.postalCode'),
maxLength: 5
}
],
}
});
......
......@@ -16,7 +16,10 @@ define(
},
validation: {
contactNumber: [
Base.createRequiredValidator('ofbiz/model/TelecomNumber.contactNumber'),
{
required: Base.createRequiredValidator('ofbiz/model/TelecomNumber.contactNumber'),
maxLength: 60
}
]
}
});
......