mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 08:20:57 +01:00
Fix "Create Form" link destinations when editing edit forms
Summary: Fixes T12301. In D17372, this changed to use generic EditEngines instead of the proper runtime engine. Normally this doesn't matter, but can in this case. After loading the configurations normally, swap their attached engines for the specific configured runtime engine we're currently executing. Test Plan: Clicked "Create Form" from the Maniphest form list, saw it go to "Create Maniphest Form", not "Create Generic Meta-Form". Reviewers: chad Reviewed By: chad Maniphest Tasks: T12301 Differential Revision: https://secure.phabricator.com/D17398
This commit is contained in:
parent
939fb69aa6
commit
4540ae028a
1 changed files with 7 additions and 0 deletions
|
@ -2126,6 +2126,13 @@ abstract class PhabricatorEditEngine
|
|||
|
||||
$configs = msort($configs, 'getCreateSortKey');
|
||||
|
||||
// Attach this specific engine to configurations we load so they can access
|
||||
// any runtime configuration. For example, this allows us to generate the
|
||||
// correct "Create Form" buttons when editing forms, see T12301.
|
||||
foreach ($configs as $config) {
|
||||
$config->attachEngine($this);
|
||||
}
|
||||
|
||||
return $configs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue