Add storage_info to list of fields for import/export

This commit is contained in:
Nathan Gray 2011-04-14 17:05:16 +00:00
parent e9d5ae4216
commit 16f9f37576
2 changed files with 14 additions and 12 deletions

View File

@ -24,6 +24,7 @@ class resources_wizard_export_csv extends importexport_wizard_basic_export_csv
'quantity' => lang('Quantity'), 'quantity' => lang('Quantity'),
'useable' => lang('Useable'), 'useable' => lang('Useable'),
'location' => lang('Location'), 'location' => lang('Location'),
'storage_info' => lang('Storage'),
'bookable' => lang('Bookable'), 'bookable' => lang('Bookable'),
'buyable' => lang('Buyable'), 'buyable' => lang('Buyable'),
'prize' => lang('Prize'), 'prize' => lang('Prize'),

View File

@ -27,18 +27,19 @@ class resources_wizard_import_csv extends importexport_wizard_basic_import_csv
// Field mapping // Field mapping
$export = new resources_wizard_export_csv(); $export = new resources_wizard_export_csv();
$this->mapping_fields = array( $this->mapping_fields = array(
'res_id' => lang('Resource ID'), 'res_id' => lang('Resource ID'),
'name' => lang('name'), 'name' => lang('name'),
'short_description' => lang('short description'), 'short_description' => lang('short description'),
'cat_id' => lang('Category'), 'cat_id' => lang('Category'),
'quantity' => lang('Quantity'), 'quantity' => lang('Quantity'),
'useable' => lang('Useable'), 'useable' => lang('Useable'),
'location' => lang('Location'), 'location' => lang('Location'),
'bookable' => lang('Bookable'), 'storage_info' => lang('Storage'),
'buyable' => lang('Buyable'), 'bookable' => lang('Bookable'),
'prize' => lang('Prize'), 'buyable' => lang('Buyable'),
'long_description' => lang('Long description'), 'prize' => lang('Prize'),
'inventory_number' => lang('inventory number'), 'long_description' => lang('Long description'),
'inventory_number' => lang('inventory number'),
); );
$custom = config::get_customfields('resources', true); $custom = config::get_customfields('resources', true);