[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2809] addons/1.3/assets/trunk/scripts/asset.pl
- Subject: SF.net SVN: ledger-smb:[2809] addons/1.3/assets/trunk/scripts/asset.pl
- From: ..hidden..
- Date: Tue, 08 Dec 2009 20:24:16 +0000
Revision: 2809
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2809&view=rev
Author: einhverfr
Date: 2009-12-08 20:24:16 +0000 (Tue, 08 Dec 2009)
Log Message:
-----------
Minor fix to asset entry
Modified Paths:
--------------
addons/1.3/assets/trunk/scripts/asset.pl
Modified: addons/1.3/assets/trunk/scripts/asset.pl
===================================================================
--- addons/1.3/assets/trunk/scripts/asset.pl 2009-12-07 21:31:39 UTC (rev 2808)
+++ addons/1.3/assets/trunk/scripts/asset.pl 2009-12-08 20:24:16 UTC (rev 2809)
@@ -111,21 +111,12 @@
. 'Invoice:'.$asset->{invnumber};
$asset->{subject} = 'Vendor/Invoice Note';
$asset->save_note;
- my $template = LedgerSMB::Template->new(
- user =>$request->{_user},
- locale => $request->{_locale},
- path => 'UI/asset',
- template => 'edit_asset',
- format => 'HTML'
- );
$newasset = LedgerSMB::DBObject::Asset->new(
base => $request,
copy => 'list',
merge => ['stylesheet'],
);
- $newasset->{title} = $asset->{_locale}->text('Add Asset');
- $newasset->get_metadata;
- $template->render($newasset);
+ asset_screen($newasset);
}
sub asset_search {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.