mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 06:42:42 +01:00
Fix subtype extension support check
Summary: Fixes T13663. `supportsSubtypes` tries to create an editable object, but this isn't always valid for `PhabricatorCalendarImport`. Use `instanceof` instead. Test Plan: - Edited calendar import, tasks (2 different subtypes), and projects (2 different subtypes). - Changed task subtypes using {nav Change Subtype} action and batch editor. - Changed task and project subtypes using Conduit. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Maniphest Tasks: T13663 Differential Revision: https://secure.phabricator.com/D21714
This commit is contained in:
parent
8daaf5ef21
commit
1965b78b34
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ final class PhabricatorSubtypeEditEngineExtension
|
|||
public function supportsObject(
|
||||
PhabricatorEditEngine $engine,
|
||||
PhabricatorApplicationTransactionInterface $object) {
|
||||
return $engine->supportsSubtypes();
|
||||
return ($object instanceof PhabricatorEditEngineSubtypeInterface);
|
||||
}
|
||||
|
||||
public function buildCustomEditFields(
|
||||
|
|
Loading…
Reference in a new issue