HomePhabricator

Fix subtype extension support check

Description

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 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

Details

Provenance
0Authored on Aug 20 2021, 10:48 PM
0Pushed on Aug 20 2021, 10:49 PM
Reviewer
Blessed Reviewers
Differential Revision
D21714: Fix subtype extension support check
Parents
rP8daaf5ef2145: Pass a real context object to Phriction previews, fixing mentions
Branches
Unknown
Tags
Unknown
Tasks
T13663: TypeError when editing calendar import
Build Status
Buildable 25534
Build 35305: Run Core Tests