mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Changes for importexport -> et2
This commit is contained in:
parent
6209c42dc4
commit
aea4c35a90
@ -399,16 +399,16 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
|||||||
{
|
{
|
||||||
unset($filters['last_event']);
|
unset($filters['last_event']);
|
||||||
unset($filters['next_event']);
|
unset($filters['next_event']);
|
||||||
foreach($filters as $field_name => &$settings)
|
foreach($filters as $field_name => &$settings)
|
||||||
{
|
{
|
||||||
if($this->selects[$field_name]) $settings['values'] = $this->selects[$field_name];
|
if($this->selects[$field_name]) $settings['values'] = $this->selects[$field_name];
|
||||||
}
|
}
|
||||||
$filters['owner'] = array(
|
$filters['owner'] = array(
|
||||||
'name' => 'owner',
|
'name' => 'owner',
|
||||||
'label' => 'addressbook',
|
'label' => 'addressbook',
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'rows' => 5,
|
'rows' => 5,
|
||||||
'enhance' => true,
|
'tags' => true,
|
||||||
'values' => $this->ui->get_addressbooks(EGW_ACL_READ)
|
'values' => $this->ui->get_addressbooks(EGW_ACL_READ)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -107,9 +107,9 @@ class addressbook_wizard_export_contacts_csv extends importexport_wizard_basic_e
|
|||||||
'explode'=> $settings[$field]
|
'explode'=> $settings[$field]
|
||||||
);
|
);
|
||||||
if($field == 'cat_id') {
|
if($field == 'cat_id') {
|
||||||
$sel_options[$row] = $cat_options;
|
$sel_options['explode_multiselects'][$row] = $cat_options;
|
||||||
} else {
|
} else {
|
||||||
$sel_options[$row] = $multi_options;
|
$sel_options['explode_multiselects'][$row] = $multi_options;
|
||||||
}
|
}
|
||||||
$row++;
|
$row++;
|
||||||
}
|
}
|
||||||
|
39
addressbook/templates/default/export_explode_fields.xet
Normal file
39
addressbook/templates/default/export_explode_fields.xet
Normal 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>
|
Loading…
Reference in New Issue
Block a user