mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
Add a selectbox for infolog type to addressbook's merge-to-email dialog
This commit is contained in:
parent
74c48e0592
commit
383aeeba8c
@ -314,6 +314,10 @@ class addressbook_ui extends addressbook_bo
|
||||
// if there is any export limit set, pass it on to the nextmatch, to be evaluated by the export
|
||||
if (isset($this->config['contact_export_limit']) && (int)$this->config['contact_export_limit']) $content['nm']['export_limit']=$this->config['contact_export_limit'];
|
||||
|
||||
// Merge to email dialog needs the infolog types
|
||||
$infolog = new infolog_bo();
|
||||
$sel_options['info_type'] = $infolog->enums['type'];
|
||||
|
||||
// dont show tid-selection if we have only one content_type
|
||||
// be a bit more sophisticated about it
|
||||
$availabletypes = array_keys($this->content_types);
|
||||
|
@ -835,7 +835,7 @@ app.classes.addressbook = AppJS.extend(
|
||||
var _action = jQuery.extend(true, {}, action);
|
||||
if(value.infolog)
|
||||
{
|
||||
_action.data.menuaction += '&to_app=infolog';
|
||||
_action.data.menuaction += '&to_app=infolog&info_type='+value.info_type;
|
||||
}
|
||||
nm_action(_action, selected, target);
|
||||
}
|
||||
@ -845,7 +845,8 @@ app.classes.addressbook = AppJS.extend(
|
||||
title: action.caption,
|
||||
buttons: et2_dialog.BUTTONS_OK_CANCEL,
|
||||
type: et2_dialog.QUESTION_MESSAGE,
|
||||
template: egw.webserverUrl+'/addressbook/templates/default/mail_merge_dialog.xet'
|
||||
template: egw.webserverUrl+'/addressbook/templates/default/mail_merge_dialog.xet',
|
||||
value: {content: {info_type: 'email'}, sel_options: this.et2.getArrayMgr('sel_options').data}
|
||||
});
|
||||
}
|
||||
else
|
||||
|
@ -13,7 +13,10 @@
|
||||
<description value="Do you want to send the message to all selected entries, WITHOUT further editing?"/>
|
||||
</row>
|
||||
<row>
|
||||
<checkbox id="infolog" label="Save as infolog"/>
|
||||
<hbox>
|
||||
<checkbox id="infolog" label="Save as infolog"/>
|
||||
<listbox id="info_type"/>
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
@ -3530,6 +3530,10 @@ class mail_compose
|
||||
{
|
||||
$bo = new infolog_bo();
|
||||
$entry = $bo->import_mail($data['addresses'],$data['subject'],$data['message'],$data['attachments'],$data['date']);
|
||||
if($_REQUEST['info_type'] && isset($bo->enums['type'][$_REQUEST['info_type']]))
|
||||
{
|
||||
$entry['info_type'] = $_REQUEST['info_type'];
|
||||
}
|
||||
$bo->write($entry);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user