Page MenuHomePhabricator

D16285.id39159.diff
No OneTemporary

D16285.id39159.diff

diff --git a/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php b/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php
--- a/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php
+++ b/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php
@@ -465,6 +465,34 @@
}
}
break;
+ case PhabricatorCalendarEventTransaction::TYPE_START_DATE:
+ case PhabricatorCalendarEventTransaction::TYPE_END_DATE:
+ case PhabricatorCalendarEventTransaction::TYPE_RECURRENCE_END_DATE:
+ foreach ($xactions as $xaction) {
+ if ($xaction->getNewValue()->isValid()) {
+ continue;
+ }
+
+ switch ($type) {
+ case PhabricatorCalendarEventTransaction::TYPE_START_DATE:
+ $message = pht('Start date is invalid.');
+ break;
+ case PhabricatorCalendarEventTransaction::TYPE_END_DATE:
+ $message = pht('End date is invalid.');
+ break;
+ case PhabricatorCalendarEventTransaction::TYPE_RECURRENCE_END_DATE:
+ $message = pht('Repeat until date is invalid.');
+ break;
+ }
+
+ $errors[] = new PhabricatorApplicationTransactionValidationError(
+ $type,
+ pht('Invalid'),
+ $message,
+ $xaction);
+ }
+ break;
+
}
return $errors;

File Metadata

Mime Type
text/plain
Expires
Oct 15 2024, 8:00 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712015
Default Alt Text
D16285.id39159.diff (1 KB)

Event Timeline