Homestyx hydra
Diffusion hydra 0943561dcb78

Fix incorrect construction of subtype map when validating "subtype"…

Description

Fix incorrect construction of subtype map when validating "subtype" transactions against non-subtypable objects

Summary:
Fixes T13389. Currently, we try to "newSubtypeMap()" unconditionally, even if the underlying object does not support subtypes.

  • Only try to build a subtype map if subtype transactions are actually being applied.
  • When subtype transactions are applied to a non-subtypable object, fail more explicitly.

Test Plan: Clicked "Make Editable" in a fresh Calendar transaction form, got an editable form instead of a fatal from "newSubtypeMap()". (Calendar events are not currently subtypable.)

Maniphest Tasks: T13389

Differential Revision: https://secure.phabricator.com/D20741

Details

Provenance
epriestleyAuthored on Aug 27 2019, 10:05 AM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:7198bd7db784: When "utf8mb4" is available, use it as the default client charset when invoking…
Branches
Unknown
Tags
Unknown

Event Timeline