Page MenuHomePhabricator

D16285.id39172.diff
No OneTemporary

D16285.id39172.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
Wed, Dec 25, 3:24 AM (3 h, 53 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6924710
Default Alt Text
D16285.id39172.diff (1 KB)

Event Timeline