From cbd428bb89ccee9e79504755173364b30b50037e Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Thu, 5 Jan 2023 15:47:31 +0100 Subject: [PATCH] Hotfix to allow 2023 as publication date --- app/models/doi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/doi.js b/app/models/doi.js index 782e1764f..bb8622d82 100644 --- a/app/models/doi.js +++ b/app/models/doi.js @@ -91,11 +91,11 @@ const Validations = buildValidations({ }), validator('date', { after: '999', - before: '2023', + before: '2024', precision: 'year', format: 'YYYY', errorFormat: 'YYYY', - message: 'Must be a year between 1000 and 2023.', + message: 'Must be a year between 1000 and 2024.', disabled: computed('model.{mode,state}', function () { return ( this.model.get('state') === 'draft' ||