mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-25 01:04:02 +08:00
Date, time and Date & Time columns will not be saved when applied in the item card [SCI-10303]
This commit is contained in:
parent
46c9a52761
commit
9549d8b481
1 changed files with 5 additions and 3 deletions
|
@ -137,9 +137,11 @@ export default {
|
|||
validateValue() {
|
||||
this.error = null;
|
||||
// Date is not changed
|
||||
if (this.trimSecondsAndMilliseconds(this.defaultStartDate) === this.trimSecondsAndMilliseconds(this.startDate)
|
||||
&& this.trimSecondsAndMilliseconds(this.defaultEndDate) === this.trimSecondsAndMilliseconds(this.endDate)) {
|
||||
return false;
|
||||
if (this.defaultStartDate && this.defaultEndDate) {
|
||||
if (this.trimSecondsAndMilliseconds(this.defaultStartDate) === this.trimSecondsAndMilliseconds(this.startDate)
|
||||
&& this.trimSecondsAndMilliseconds(this.defaultEndDate) === this.trimSecondsAndMilliseconds(this.endDate)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.range) {
|
||||
|
|
Loading…
Reference in a new issue