From: Gustavo Martin Morcuende Date: Mon, 21 May 2012 00:04:35 +0000 (+0200) Subject: Fixed name field. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=028d54b277cb48cde0f4f710af83b3402c34f5a1;p=mobi%2F.git Fixed name field. Misspelled english name :( --- diff --git a/lib/form/doctrine/OfficeAdsForm.class.php b/lib/form/doctrine/OfficeAdsForm.class.php index ce04d7d..251a551 100644 --- a/lib/form/doctrine/OfficeAdsForm.class.php +++ b/lib/form/doctrine/OfficeAdsForm.class.php @@ -11,9 +11,9 @@ class OfficeAdsForm extends BaseOfficeAdsForm { /*Stores Doctrine Records to be saved in the database.*/ - protected $scheduledForSave = array(); + protected $scheduledForSaving = array(); /*Stores Doctrine Records to be removed from the database.*/ - protected $scheduledForDelete = array(); + protected $scheduledForDeletion = array(); public function configure() @@ -76,11 +76,11 @@ class OfficeAdsForm extends BaseOfficeAdsForm } - foreach ($this->scheduledForSave as $index => $value) + foreach ($this->scheduledForSaving as $index => $value) { $value->save($con); } - foreach ($this->scheduledForDelete as $index => $value) + foreach ($this->scheduledForDeletion as $index => $value) { $value->delete($con); } @@ -117,7 +117,7 @@ class OfficeAdsForm extends BaseOfficeAdsForm } } //The user did not choose this ad which was previously in the database, so we have to remove it. - $this->scheduledForDelete[$index] = $officeAd; + $this->scheduledForDeletion[$index] = $officeAd; } } @@ -142,7 +142,7 @@ class OfficeAdsForm extends BaseOfficeAdsForm $newOfficeAds = new OfficeAds(); $newOfficeAds->office_id = $this->getObject()->getOfficeId(); $newOfficeAds->ad_id = $value; - $this->scheduledForSave[$index] = $newOfficeAds; + $this->scheduledForSaving[$index] = $newOfficeAds; } } }