Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14004824
D8324.id19798.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8324.id19798.diff
View Options
Index: src/applications/maniphest/controller/ManiphestTaskEditController.php
===================================================================
--- src/applications/maniphest/controller/ManiphestTaskEditController.php
+++ src/applications/maniphest/controller/ManiphestTaskEditController.php
@@ -460,14 +460,10 @@
$project_tokenizer_id = celerity_generate_unique_node_id();
- if ($request->isAjax()) {
- $form = new PHUIFormLayoutView();
- } else {
- $form = new AphrontFormView();
- $form
- ->setUser($user)
- ->addHiddenInput('template', $template_id);
- }
+ $form = new AphrontFormView();
+ $form
+ ->setUser($user)
+ ->addHiddenInput('template', $template_id);
if ($parent_task) {
$form
@@ -627,7 +623,7 @@
->appendChild(
array(
$error_view,
- $form,
+ $form->buildLayoutView(),
))
->addCancelButton($cancel_uri)
->addSubmitButton($button_name);
Index: src/view/form/AphrontFormView.php
===================================================================
--- src/view/form/AphrontFormView.php
+++ src/view/form/AphrontFormView.php
@@ -81,12 +81,16 @@
$this->getUser()));
}
- public function render() {
-
- require_celerity_resource('phui-form-view-css');
- $layout = id (new PHUIFormLayoutView())
+ public function buildLayoutView() {
+ return id(new PHUIFormLayoutView())
->appendChild($this->renderDataInputs())
->appendChild($this->renderChildren());
+ }
+
+ public function render() {
+ require_celerity_resource('phui-form-view-css');
+
+ $layout = $this->buildLayoutView();
if (!$this->user) {
throw new Exception(pht('You must pass the user to AphrontFormView.'));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 28, 3:18 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6748626
Default Alt Text
D8324.id19798.diff (1 KB)
Attached To
Mode
D8324: Fix a type issue with FormView juggling
Attached
Detach File
Event Timeline
Log In to Comment