From 197997fee766ffecc5b528d03b10ba410756e448 Mon Sep 17 00:00:00 2001 From: Yuchen Wang Date: Fri, 25 Nov 2011 21:52:31 -0500 Subject: [PATCH] CC-3093: SoundCloud preferences do not have email or password as required fields + firefox auto-fills the password field Mask the password instead of hiding it --- airtime_mvc/application/forms/SoundcloudPreferences.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/forms/SoundcloudPreferences.php b/airtime_mvc/application/forms/SoundcloudPreferences.php index e948ba4f4..b2840d580 100644 --- a/airtime_mvc/application/forms/SoundcloudPreferences.php +++ b/airtime_mvc/application/forms/SoundcloudPreferences.php @@ -77,8 +77,9 @@ class Application_Form_SoundcloudPreferences extends Zend_Form_SubForm // which is something we don't want 'allowEmpty' => false, 'validators' => array( - new PasswordNotEmpty(array('UploadToSoundcloudOption'=>'1')) - ) + new ConditionalNotEmpty(array('UploadToSoundcloudOption'=>'1')) + ), + 'renderPassword' => true )); // Add the description element