From ca419ee50c052bb9bd755735061ba018cc6acc91 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Tue, 15 May 2012 16:11:41 +0200 Subject: [PATCH] Remove useless validator from OfficeForm --- lib/form/doctrine/OfficeForm.class.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/form/doctrine/OfficeForm.class.php b/lib/form/doctrine/OfficeForm.class.php index 2e79330..bab320c 100644 --- a/lib/form/doctrine/OfficeForm.class.php +++ b/lib/form/doctrine/OfficeForm.class.php @@ -40,11 +40,6 @@ class OfficeForm extends BaseOfficeForm 'max' => 'Latitude "%value%" must not exceed the %max% value', 'min' => 'Latitude "%value%" must be equal or higher than %min%')); - $this->validatorSchema['city_id'] = new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('City'), - 'required' => false, - 'query' => $cityNamesQuery)); - - $this->widgetSchema->setLabels(array('city_id' => 'City: ', 'longitude' => 'Longitude (180 to -180): ', -- 2.1.4