Permalink
Browse files

fixed edit listing

  • Loading branch information...
1 parent 4f1350b commit ebc73651a19eb717b7af47cb61ee93226ab1bacd @clydealegro committed May 15, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 apps/frontend/modules/listings/actions/actions.class.php
  2. +2 −0 lib/form/ListingForm.class.php
View
2 apps/frontend/modules/listings/actions/actions.class.php
@@ -60,7 +60,7 @@ public function executeEdit(sfWebRequest $request){
$this->form = new ListingForm($listing);
if ('POST' == $request->getMethod()) {
$this->form->bind( $request->getParameter($this->form->getName()), $request->getFiles($this->form->getName()) );
- //$editedListing=$this->form->save();
+ $editedListing=$this->form->save();
//var_dump($editedListing); exit;
}
/* }
View
2 lib/form/ListingForm.class.php
@@ -12,6 +12,8 @@ class ListingForm extends BaseListingForm
public function configure()
{
$this->useFields(array('name', 'complete_address', 'details', 'contact_person', 'contact_number'));
+
+ unset($this['listing_id']);
//$mapForm = new MapInfoForm();

0 comments on commit ebc7365

Please sign in to comment.