1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-19 11:11:10 +01:00
phorge-phorge/src/view/form
epriestley b62420e6e4 Separate reading object values out of didSetObject() in CustomField
Summary:
Ref T3886. Broadly, fields break down into two types right now: fields which store data on the object (like `DifferentialTitleField`) and fields which store data in custom field storage.

The former type generally reads data from the object into local storage prior to editing, then writes it back afterward. Currently, this happens in `didSetObject()`.

However, now that we load and set objects from ApplicationTransactionQuery, we'll do this extra read-field-values on view interfaces too. There, it's unnecessary and sometimes throws data-attached exceptions.

Instead, separate these concepts, and do all the read-from-object / read-from-storage in one logical chunk, separate from `didSetObject()`.

Test Plan:
  - Edited Differential revision.
  - Edited Maniphest task.
  - Edited Project.
  - Edited user profile.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3886

Differential Revision: https://secure.phabricator.com/D8299
2014-02-21 14:44:01 -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 Update Form Layouts 2013-08-26 11:53:11 -07: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