Page MenuHomePhabricator

Remove extra parameter in newStandardEditField() call
ClosedPublic

Authored by epriestley on Feb 16 2017, 3:02 PM.
Tags
None
Referenced Files
F14013363: D17370.diff
Sat, Nov 2, 5:02 AM
F14006679: D17370.diff
Mon, Oct 28, 3:10 PM
F13956723: D17370.id.diff
Oct 14 2024, 6:53 AM
Unknown Object (File)
Oct 10 2024, 6:43 AM
Unknown Object (File)
Oct 9 2024, 7:20 AM
Unknown Object (File)
Sep 21 2024, 7:45 AM
Unknown Object (File)
Sep 13 2024, 12:46 AM
Unknown Object (File)
Sep 9 2024, 10:18 PM
Subscribers
None

Details

Summary

See D14617. This could probably go either way but we don't currently need $engine in newStandardEditField(), so just get rid of it.

Test Plan

Edited a task with standard custom fields defined.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/infrastructure/customfield/field/PhabricatorCustomField.php
1097

Perhaps remove the parameter too, it's now unused.

I think subclasses might reasonably want to override this method and need access to $engine to do so. This is theoretical in the upstream, but PhabricatorCustomField is extensible by third-party code, and we have some (non-custom) fields in first-party applications where behavior depends on $editor (for example, fields which only appear on either the "create" or "edit" screen, but not both).

This revision is now accepted and ready to land.Feb 16 2017, 4:50 PM
This revision was automatically updated to reflect the committed changes.