Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13968983
D16285.id39159.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16285.id39159.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Oct 17 2024, 11:48 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712015
Default Alt Text
D16285.id39159.diff (1 KB)
Attached To
Mode
D16285: Restore date validation errors to Calendar
Attached
Detach File
Event Timeline
Log In to Comment