mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Only validate form subtype edits if subtype transactions are present
Summary: Fixes T12347. Ref T12314. Validation gets called no matter what, but is only relevant if the form supports subtypes. Test Plan: Marked/unmarked a Paste form as editable. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12347, T12314 Differential Revision: https://secure.phabricator.com/D17457
This commit is contained in:
parent
d2a420d13a
commit
5ed90b2235
1 changed files with 15 additions and 13 deletions
|
@ -57,6 +57,7 @@ final class PhabricatorEditEngineConfigurationEditor
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PhabricatorEditEngineConfigurationTransaction::TYPE_SUBTYPE:
|
case PhabricatorEditEngineConfigurationTransaction::TYPE_SUBTYPE:
|
||||||
|
if ($xactions) {
|
||||||
$map = $object->getEngine()
|
$map = $object->getEngine()
|
||||||
->setViewer($this->getActor())
|
->setViewer($this->getActor())
|
||||||
->newSubtypeMap();
|
->newSubtypeMap();
|
||||||
|
@ -73,6 +74,7 @@ final class PhabricatorEditEngineConfigurationEditor
|
||||||
pht('Subtype "%s" is not a valid subtype.', $new),
|
pht('Subtype "%s" is not a valid subtype.', $new),
|
||||||
$xaction);
|
$xaction);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue