Skip to content
Snippets Groups Projects
Commit 601ed455 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #5274 fix create contact in multi

parent c5d77259
No related branches found
No related tags found
No related merge requests found
......@@ -615,9 +615,10 @@ function get_form_txt($values, $pathManageAction, $actionId, $table, $module, $
$frmStr .= '<td><label for="contact" class="form_title" >'
. '<span id="dest_multi_contact">' . _DEST . '</span>';
if ($core->test_admin('my_contacts', 'apps', false)) {
$pathScriptTab = $_SESSION['config']['businessappurl']
. 'index.php?display=false&dir=my_contacts&page=create_contact_iframe';
$frmStr .= ' <a href="#" id="create_multi_contact" title="' . _CREATE_CONTACT
. '" onclick="new Effect.toggle(\'create_contact_div\', '
. '\'blind\', {delay:0.2});return false;" '
. '" onclick="loadTab(\''.$res_id.'\',\''.$coll_id.'\',\'\',\''.$pathScriptTab.'\',\'create_contact\');return false;" '
. 'style="display:inline;" ><i class="fa fa-pencil" title="'
. _CREATE_CONTACT . '"></i></a>';
}
......
......@@ -1728,6 +1728,11 @@ function set_new_contact_address(path_manage_script, id_div, close,transmission)
} else if (parent.parent.$('contact')) {
parent.parent.$('contact').value = response.contactName;
}
if (parent.$('email')) {
parent.$('email').value = response.contactName;
} else if (parent.parent.$('email')) {
parent.parent.$('email').value = response.contactName;
}
if (parent.$('contactidAttach')) {
parent.$('contactidAttach').value = response.contactId;
} else if (parent.parent.$('contactidAttach')){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment