mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:29:25 +01:00
* Addressbook: call doublicate check when creating a new contact from eMail
This commit is contained in:
parent
6ade2ce970
commit
8139be67cb
@ -5,7 +5,7 @@
|
|||||||
* @link www.egroupware.org
|
* @link www.egroupware.org
|
||||||
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
|
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
|
||||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||||
* @copyright (c) 2005-11 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
* @copyright (c) 2005-12 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||||
* @copyright (c) 2005/6 by Cornelius Weiss <egw@von-und-zu-weiss.de>
|
* @copyright (c) 2005/6 by Cornelius Weiss <egw@von-und-zu-weiss.de>
|
||||||
* @package addressbook
|
* @package addressbook
|
||||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||||
@ -1731,7 +1731,15 @@ class addressbook_ui extends addressbook_bo
|
|||||||
$content['tid'] = $_GET['typeid'] ? $_GET['typeid'] : ($active_tid?$active_tid:$new_type[0]);
|
$content['tid'] = $_GET['typeid'] ? $_GET['typeid'] : ($active_tid?$active_tid:$new_type[0]);
|
||||||
foreach($this->get_contact_columns() as $field)
|
foreach($this->get_contact_columns() as $field)
|
||||||
{
|
{
|
||||||
if ($_GET['presets'][$field]) $content[$field] = $_GET['presets'][$field];
|
if ($_GET['presets'][$field])
|
||||||
|
{
|
||||||
|
$content[$field] = $_GET['presets'][$field];
|
||||||
|
if (substr($field, 0, 2) == 'n_' && !isset($onload_check_value))
|
||||||
|
{
|
||||||
|
egw_framework::set_onload("check_value(document.getElementById('exec[$field]'), 'exec[$field]');");
|
||||||
|
$onload_check_value = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$content['creator'] = $this->user;
|
$content['creator'] = $this->user;
|
||||||
$content['created'] = $this->now_su;
|
$content['created'] = $this->now_su;
|
||||||
|
Loading…
Reference in New Issue
Block a user