Permalink
Browse files

Fixed issue where dependencies wasn't cleared out. Fixes #51

Signed-off-by: Eric Barnes <eric@ericlbarnes.com>
  • Loading branch information...
1 parent 87a2d77 commit 8f7f3bb90c13bde12af4605cc7cb1f1a464dd67a @ericbarnes ericbarnes committed May 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 application/models/listing.php
@@ -76,7 +76,8 @@ public function save_dependencies($id)
if ( ! $dependencies = Input::get('dependencies'))
{
- return false;
+ // Delete any existing
+ return DB::table('dependencies')->where('listing_id', '=', $id)->delete();
}
foreach ($dependencies as $dependency)

0 comments on commit 8f7f3bb

Please sign in to comment.