From: Gustavo Martin Morcuende Date: Tue, 11 Dec 2012 22:51:00 +0000 (+0100) Subject: Just one more change in OfficeForm X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=62110acad3c9f568835bf179a48f4d8b328ae85a;p=mobi%2F.git Just one more change in OfficeForm --- diff --git a/lib/form/doctrine/CityForm.class.php b/lib/form/doctrine/CityForm.class.php index 36cefd3..76ef2d8 100644 --- a/lib/form/doctrine/CityForm.class.php +++ b/lib/form/doctrine/CityForm.class.php @@ -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()) diff --git a/lib/form/doctrine/OfficeForm.class.php b/lib/form/doctrine/OfficeForm.class.php index 15f32c6..6c7fb90 100644 --- a/lib/form/doctrine/OfficeForm.class.php +++ b/lib/form/doctrine/OfficeForm.class.php @@ -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'),