From 028d54b277cb48cde0f4f710af83b3402c34f5a1 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Mon, 21 May 2012 02:04:35 +0200 Subject: [PATCH] Fixed name field. Misspelled english name :( --- lib/form/doctrine/OfficeAdsForm.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; } } } -- 2.1.4