Just one more change in OfficeForm
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 11 Dec 2012 22:51:00 +0000 (23:51 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 11 Dec 2012 22:51:00 +0000 (23:51 +0100)
lib/form/doctrine/CityForm.class.php
lib/form/doctrine/OfficeForm.class.php

index 36cefd3..76ef2d8 100644 (file)
@@ -22,7 +22,7 @@ class CityForm extends BaseCityForm
     }
 
     $this->widgetSchema['region_id'] = new sfWidgetFormDoctrineChoice(array('model'     => $this->getRelatedModelName('Region'),
-                                                                            'add_empty' => true,
+                                                                            'add_empty' => false,
                                                                             'query'     => $regionsQuery));
 
     if($this->isNew())
index 15f32c6..6c7fb90 100644 (file)
@@ -25,7 +25,7 @@ class OfficeForm extends BaseOfficeForm
     $this->widgetSchema['latitude'] = new sfWidgetFormInputFloat();
 
     $this->widgetSchema['city_id'] = new sfWidgetFormDoctrineChoice(array('model'     => $this->getRelatedModelName('City'),
-                                                                          'add_empty' => true,
+                                                                          'add_empty' => false,
                                                                           'query'     => $citiesQuery));
 
     $this->validatorSchema['city_id'] = new sfValidatorDoctrineChoice(array('model'    => $this->getRelatedModelName('City'),