Skip to content

Commit

Permalink
Fixes #469
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jan 22, 2015
1 parent 4887c53 commit 5e49667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/LicensesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public function getClone($licenseId = null)

// Show the page
$license_options = array('0' => 'Top Level') + License::lists('name', 'id');

$maintained_list = array('' => 'Maintained', '1' => 'Yes', '0' => 'No');
//clone the orig
$license = clone $license_to_clone;
$license->id = null;
Expand All @@ -608,7 +608,7 @@ public function getClone($licenseId = null)
// Show the page
$depreciation_list = array('0' => Lang::get('admin/licenses/form.no_depreciation')) + Depreciation::lists('name', 'id');
$supplier_list = array('' => 'Select Supplier') + Supplier::orderBy('name', 'asc')->lists('name', 'id');
return View::make('backend/licenses/edit')->with('license_options',$license_options)->with('depreciation_list',$depreciation_list)->with('supplier_list',$supplier_list)->with('license',$license);
return View::make('backend/licenses/edit')->with('license_options',$license_options)->with('depreciation_list',$depreciation_list)->with('supplier_list',$supplier_list)->with('license',$license)->with('maintained_list',$maintained_list);

}
}

0 comments on commit 5e49667

Please sign in to comment.