mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 12:10:39 +01:00
fix: wrong date or time detection in field default
This commit is contained in:
parent
34ebc6b72d
commit
9d5ebefdce
@ -400,7 +400,7 @@ export default {
|
|||||||
this.defaultValue.type = 'custom';
|
this.defaultValue.type = 'custom';
|
||||||
this.defaultValue.custom = this.localRow.default.replace(/(^')|('$)/g, '');
|
this.defaultValue.custom = this.localRow.default.replace(/(^')|('$)/g, '');
|
||||||
}
|
}
|
||||||
else if (!isNaN(this.localRow.default)) {
|
else if (!isNaN(this.localRow.default.replace(/[:.-\s]/g, ''))) {
|
||||||
this.defaultValue.type = 'custom';
|
this.defaultValue.type = 'custom';
|
||||||
this.defaultValue.custom = this.localRow.default;
|
this.defaultValue.custom = this.localRow.default;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user