1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00
phorge-phorge/src/view/form
epriestley a31a7809b0 Fix a type issue with FormView juggling
Summary:
When you click the pencil icon in the Maniphest task list, we currently fatal:

  Argument 1 passed to PhabricatorCustomFieldList::appendFieldsToForm() must be an instance of AphrontFormView, instance of PHUIFormLayoutView given, called in /core/lib/phabricator/src/applications/maniphest/controller/ManiphestTaskEditController.php on line 576 and defined

This is because we build an `AphrontFormView` noramlly, but a `PHUIFormLayoutView` for dialogs, since they don't take a full form (they render their own form tag).

Instead, always build an `AphrontFormView` and just pull the `PHUIFormLayoutView` out of it when we're ready to put it in a dialog. This means `$form` is always the same type of object, and is generally better and makes more sense.

Test Plan: Clicked pencil edit icon in Maniphest task list.

Reviewers: btrahan, chad

Reviewed By: btrahan

CC: aran, carl

Differential Revision: https://secure.phabricator.com/D8324
2014-02-24 12:20:49 -08:00
..
control Separate reading object values out of didSetObject() in CustomField 2014-02-21 14:44:01 -08:00
AphrontErrorView.php Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
AphrontFormInsetView.php Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
AphrontFormView.php Fix a type issue with FormView juggling 2014-02-24 12:20:49 -08:00
PHUIFormLayoutView.php Restructure Drydock so that blueprints are instances in the DB 2013-12-03 11:09:07 +11:00
PHUIFormPageView.php Fix InvalidArgumentException PHUIFormPageView::pageErrors 2014-01-12 07:24:09 -08:00
PHUIPagedFormView.php Simplify PHUIObjectBoxViews handling of Save and Error states 2014-01-10 09:17:37 -08:00