Page MenuHomePhabricator

Fix a CalendarExport issue when an existing export has an unsupported mode
ClosedPublic

Authored by epriestley on Feb 16 2017, 2:20 PM.
Tags
None
Referenced Files
F15455915: D17369.diff
Sun, Mar 30, 5:41 AM
F15442690: D17369.diff
Thu, Mar 27, 12:00 AM
F15390874: D17369.id41766.diff
Sat, Mar 15, 7:09 AM
F15390150: D17369.id41766.diff
Sat, Mar 15, 5:57 AM
F15382050: D17369.id41767.diff
Fri, Mar 14, 10:29 AM
F15333509: D17369.diff
Sat, Mar 8, 2:41 AM
Unknown Object (File)
Mar 1 2025, 7:38 PM
Unknown Object (File)
Feb 25 2025, 6:36 AM
Subscribers
None

Details

Summary

See D16676. When an export has an unsupported mode (bad database value, out-of-date object, etc) the intent of this code is to put it into the <select /> so that you can save the form without silently changing the object.

However, it incorrectly calls array_shift() instead of array_unshift().

Test Plan

Edited a Calendar export with an invalid mode, saw the mode appear properly in the dropdown:

Screen Shot 2017-02-16 at 6.18.11 AM.png (382×440 px, 28 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable