From 78eee0af48c30015922690770b2356d77cb5c202 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Thu, 24 Jan 2013 18:19:37 -0800 Subject: [PATCH] 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 --- .../conpherence/controller/ConpherenceUpdateController.php | 1 - src/view/AphrontDialogView.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/applications/conpherence/controller/ConpherenceUpdateController.php b/src/applications/conpherence/controller/ConpherenceUpdateController.php index 75f49476e4..51f1e66bc4 100644 --- a/src/applications/conpherence/controller/ConpherenceUpdateController.php +++ b/src/applications/conpherence/controller/ConpherenceUpdateController.php @@ -207,7 +207,6 @@ final class ConpherenceUpdateController extends ->setTitle(pht('Update Conpherence')) ->setWidth(AphrontDialogView::WIDTH_FORM) ->setSubmitURI($this->getApplicationURI('update/'.$conpherence_id.'/')) - ->setEncType('multipart/form-data') ->addHiddenInput('action', 'metadata') ->appendChild($form) ->addSubmitButton() diff --git a/src/view/AphrontDialogView.php b/src/view/AphrontDialogView.php index 3a942161be..266286cef2 100644 --- a/src/view/AphrontDialogView.php +++ b/src/view/AphrontDialogView.php @@ -128,7 +128,6 @@ final class AphrontDialogView extends AphrontView { 'action' => $this->submitURI, 'method' => 'post', 'id' => $this->formID, - 'enctype' => $this->encType, ); $hidden_inputs = array();