mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02:00
make sure ca(rd|l)dav_name never get copied
This commit is contained in:
parent
9ba77ce164
commit
c443126893
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Addressbook - user interface
|
* EGroupware - Addressbook - user interface
|
||||||
*
|
*
|
||||||
* @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-10 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
* @copyright (c) 2005-11 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
|
||||||
@ -222,7 +222,7 @@ class addressbook_ui extends addressbook_bo
|
|||||||
'manual' => $do_email ? ' ' : false, // space for the manual icon
|
'manual' => $do_email ? ' ' : false, // space for the manual icon
|
||||||
);
|
);
|
||||||
$csv_export = new addressbook_csv($this);
|
$csv_export = new addressbook_csv($this);
|
||||||
$content['nm']['csv_fields'] = $GLOBALS['egw_info']['user']['preferences']['addressbook']['nextmatch-export-definition'] ?
|
$content['nm']['csv_fields'] = $GLOBALS['egw_info']['user']['preferences']['addressbook']['nextmatch-export-definition'] ?
|
||||||
$GLOBALS['egw_info']['user']['preferences']['addressbook']['nextmatch-export-definition'] :
|
$GLOBALS['egw_info']['user']['preferences']['addressbook']['nextmatch-export-definition'] :
|
||||||
$csv_export->csv_fields(null,true);
|
$csv_export->csv_fields(null,true);
|
||||||
|
|
||||||
@ -1475,7 +1475,7 @@ class addressbook_ui extends addressbook_bo
|
|||||||
// create a new contact with the content of the old
|
// create a new contact with the content of the old
|
||||||
foreach($content as $key => $value)
|
foreach($content as $key => $value)
|
||||||
{
|
{
|
||||||
if(!in_array($key, self::$copy_fields) || in_array($key, array('etag')))
|
if(!in_array($key, self::$copy_fields) || in_array($key, array('etag','carddav_name','uid')))
|
||||||
{
|
{
|
||||||
unset($content[$key]);
|
unset($content[$key]);
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* eGroupWare - Calendar's forms of the UserInterface
|
* EGroupware - Calendar's forms of the UserInterface
|
||||||
*
|
*
|
||||||
* @link http://www.egroupware.org
|
* @link http://www.egroupware.org
|
||||||
* @package calendar
|
* @package calendar
|
||||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||||
* @copyright (c) 2004-10 by RalfBecker-At-outdoor-training.de
|
* @copyright (c) 2004-11 by RalfBecker-At-outdoor-training.de
|
||||||
* @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
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
@ -479,6 +479,7 @@ class calendar_uiforms extends calendar_ui
|
|||||||
unset($event['edit_single']); // in case it has been set
|
unset($event['edit_single']); // in case it has been set
|
||||||
unset($event['modified']);
|
unset($event['modified']);
|
||||||
unset($event['modifier']);
|
unset($event['modifier']);
|
||||||
|
unset($event['caldav_name']);
|
||||||
$event['owner'] = !(int)$this->owner || !$this->bo->check_perms(EGW_ACL_ADD,0,$this->owner) ? $this->user : $this->owner;
|
$event['owner'] = !(int)$this->owner || !$this->bo->check_perms(EGW_ACL_ADD,0,$this->owner) ? $this->user : $this->owner;
|
||||||
|
|
||||||
// Clear participant stati
|
// Clear participant stati
|
||||||
|
Loading…
x
Reference in New Issue
Block a user