From 62110acad3c9f568835bf179a48f4d8b328ae85a Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Tue, 11 Dec 2012 23:51:00 +0100 Subject: [PATCH] Just one more change in OfficeForm --- lib/form/doctrine/CityForm.class.php | 2 +- lib/form/doctrine/OfficeForm.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'), -- 2.1.4