mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Use default conversions, don't pass account_lid to create new groups
This commit is contained in:
parent
98a2731116
commit
ab63660111
@ -111,6 +111,8 @@ class admin_import_groups_csv implements importexport_iface_import_plugin {
|
|||||||
// don't import empty records
|
// don't import empty records
|
||||||
if( count( array_unique( $record ) ) < 2 ) continue;
|
if( count( array_unique( $record ) ) < 2 ) continue;
|
||||||
|
|
||||||
|
importexport_import_csv::convert($record, admin_egw_group_record::$types, 'admin');
|
||||||
|
|
||||||
if ( $_definition->plugin_options['conditions'] ) {
|
if ( $_definition->plugin_options['conditions'] ) {
|
||||||
foreach ( $_definition->plugin_options['conditions'] as $condition ) {
|
foreach ( $_definition->plugin_options['conditions'] as $condition ) {
|
||||||
switch ( $condition['type'] ) {
|
switch ( $condition['type'] ) {
|
||||||
@ -163,7 +165,11 @@ class admin_import_groups_csv implements importexport_iface_import_plugin {
|
|||||||
return true;
|
return true;
|
||||||
case 'update' :
|
case 'update' :
|
||||||
case 'create' :
|
case 'create' :
|
||||||
$command = new admin_cmd_edit_group($data['account_lid'], $_data);
|
if(count($_data['account_members']) < 1) {
|
||||||
|
$this->errors[$record_num] = lang('You must select at least one group member.');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$command = new admin_cmd_edit_group($_action == 'create' ? false : $_data['account_lid'], $_data);
|
||||||
if($this->dry_run) {
|
if($this->dry_run) {
|
||||||
$this->results[$_action]++;
|
$this->results[$_action]++;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user