Changes for importexport -> et2

This commit is contained in:
Nathan Gray 2013-11-07 23:43:17 +00:00
parent 6209c42dc4
commit aea4c35a90
3 changed files with 46 additions and 7 deletions

View File

@ -399,16 +399,16 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
{
unset($filters['last_event']);
unset($filters['next_event']);
foreach($filters as $field_name => &$settings)
{
if($this->selects[$field_name]) $settings['values'] = $this->selects[$field_name];
}
foreach($filters as $field_name => &$settings)
{
if($this->selects[$field_name]) $settings['values'] = $this->selects[$field_name];
}
$filters['owner'] = array(
'name' => 'owner',
'label' => 'addressbook',
'type' => 'select',
'rows' => 5,
'enhance' => true,
'tags' => true,
'values' => $this->ui->get_addressbooks(EGW_ACL_READ)
);
}

View File

@ -107,9 +107,9 @@ class addressbook_wizard_export_contacts_csv extends importexport_wizard_basic_e
'explode'=> $settings[$field]
);
if($field == 'cat_id') {
$sel_options[$row] = $cat_options;
$sel_options['explode_multiselects'][$row] = $cat_options;
} else {
$sel_options[$row] = $multi_options;
$sel_options['explode_multiselects'][$row] = $multi_options;
}
$row++;
}

View File

@ -0,0 +1,39 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="addressbook.export_explode_fields" template="" lang="" group="0" version="1.9.001">
<grid>
<columns>
<column/>
</columns>
<rows>
<row>
<description value="List as seperate columns"/>
</row>
<row disabled="!@explode_multiselects">
<grid width="100%" id="explode_multiselects">
<columns>
<column/>
<column/>
</columns>
<rows>
<row class="th">
<description value="Field"/>
<description value="Style"/>
</row>
<row>
<description id="${row}[name]"/>
<menulist>
<menupopup id="${row}[explode]"/>
</menulist>
</row>
</rows>
</grid>
</row>
<row disabled="@explode_multiselects">
<description value="No multi-select columns selected for export"/>
</row>
</rows>
</grid>
</template>
</overlay>