From: Gustavo Martin Morcuende Date: Tue, 15 May 2012 14:11:41 +0000 (+0200) Subject: Remove useless validator from OfficeForm X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=ca419ee50c052bb9bd755735061ba018cc6acc91;p=mobi%2F.git Remove useless validator from OfficeForm --- 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): ',