Skip to content

Commit

Permalink
fixed edit listing
Browse files Browse the repository at this point in the history
  • Loading branch information
clydealegro committed May 15, 2012
1 parent 4f1350b commit ebc7365
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/modules/listings/actions/actions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
/* }
Expand Down
2 changes: 2 additions & 0 deletions lib/form/ListingForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit ebc7365

Please sign in to comment.