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'),
'useable' => lang('Useable'),
'location' => lang('Location'),
'storage_info' => lang('Storage'),
'bookable' => lang('Bookable'),
'buyable' => lang('Buyable'),
'prize' => lang('Prize'),

View File

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