1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00

Add a setEncType method to AphrontDialogView.

Summary: Fixes a Conpherence fatal when going to /conpherence/update/1

Test Plan: Successfully rendered the edit form and saved it.

Reviewers: epriestley, btrahan

Reviewed By: btrahan

CC: aran, Korvin

Maniphest Tasks: T2402

Differential Revision: https://secure.phabricator.com/D4634
This commit is contained in:
Ricky Elrod 2013-01-24 18:19:37 -08:00 committed by epriestley
parent 184be964a2
commit 78eee0af48
2 changed files with 0 additions and 2 deletions

View file

@ -207,7 +207,6 @@ final class ConpherenceUpdateController extends
->setTitle(pht('Update Conpherence')) ->setTitle(pht('Update Conpherence'))
->setWidth(AphrontDialogView::WIDTH_FORM) ->setWidth(AphrontDialogView::WIDTH_FORM)
->setSubmitURI($this->getApplicationURI('update/'.$conpherence_id.'/')) ->setSubmitURI($this->getApplicationURI('update/'.$conpherence_id.'/'))
->setEncType('multipart/form-data')
->addHiddenInput('action', 'metadata') ->addHiddenInput('action', 'metadata')
->appendChild($form) ->appendChild($form)
->addSubmitButton() ->addSubmitButton()

View file

@ -128,7 +128,6 @@ final class AphrontDialogView extends AphrontView {
'action' => $this->submitURI, 'action' => $this->submitURI,
'method' => 'post', 'method' => 'post',
'id' => $this->formID, 'id' => $this->formID,
'enctype' => $this->encType,
); );
$hidden_inputs = array(); $hidden_inputs = array();