@optimiser/common 1.0.326 → 1.0.327
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/utility.js +2 -2
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -5057,7 +5057,7 @@ function CheckConditionalField(field, record, action) {
|
|
|
5057
5057
|
var msg = '';
|
|
5058
5058
|
var fieldData = record[field.Name];
|
|
5059
5059
|
if (field.Schema.ConditionalAction == 'enabled' && field.IsRequired == true) {
|
|
5060
|
-
if (fieldData === '' || fieldData === null || (fieldData === undefined && action == "add")) {
|
|
5060
|
+
if (field.Schema.UIDataType != 'autoincrement' && (fieldData === '' || fieldData === null || (fieldData === undefined && action == "add"))) {
|
|
5061
5061
|
msg = ((field.DisplayName || field.Schema.DisplayName) || field.Name) + ' is required!';
|
|
5062
5062
|
}
|
|
5063
5063
|
}
|
|
@@ -5067,7 +5067,7 @@ function CheckConditionalField(field, record, action) {
|
|
|
5067
5067
|
case "enabled-mandatory":
|
|
5068
5068
|
case "show-enabled-mandatory":
|
|
5069
5069
|
case "show-disabled-mandatory":
|
|
5070
|
-
if (fieldData === '' || fieldData === null || (fieldData === undefined && action == "add")) {
|
|
5070
|
+
if (field.Schema.UIDataType != 'autoincrement' && (fieldData === '' || fieldData === null || (fieldData === undefined && action == "add"))) {
|
|
5071
5071
|
msg = ((field.DisplayName || field.Schema.DisplayName) || field.Name) + ' is conditionally required!';
|
|
5072
5072
|
}
|
|
5073
5073
|
break;
|