mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Fix a tokenizer issue in a rare edge case
Summary: Ref T7689. We may not propgate the viewer down to the controls in some rendering pathways. An example is "Create Task..." on workboard columns. Instead, move the propagation a little deeper. Test Plan: "Create Task..." on a workboard column. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7689 Differential Revision: https://secure.phabricator.com/D12250
This commit is contained in:
parent
eb81fd1562
commit
983c6f9d4b
1 changed files with 4 additions and 4 deletions
|
@ -92,6 +92,10 @@ final class AphrontFormView extends AphrontView {
|
|||
}
|
||||
|
||||
public function buildLayoutView() {
|
||||
foreach ($this->controls as $control) {
|
||||
$control->setUser($this->getUser());
|
||||
}
|
||||
|
||||
return id(new PHUIFormLayoutView())
|
||||
->setFullWidth($this->getFullWidth())
|
||||
->appendChild($this->renderDataInputs())
|
||||
|
@ -118,10 +122,6 @@ final class AphrontFormView extends AphrontView {
|
|||
public function render() {
|
||||
require_celerity_resource('phui-form-view-css');
|
||||
|
||||
foreach ($this->controls as $control) {
|
||||
$control->setUser($this->getUser());
|
||||
}
|
||||
|
||||
$layout = $this->buildLayoutView();
|
||||
|
||||
if (!$this->user) {
|
||||
|
|
Loading…
Reference in a new issue