mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
- fixed not working copy of accounts via view
- removed debug-message from action()
This commit is contained in:
parent
5bc9ca3a7d
commit
fa4a6608ab
@ -342,7 +342,7 @@ class uicontacts extends bocontacts
|
|||||||
*/
|
*/
|
||||||
function action($action,$checked,$use_all,&$success,&$failed,&$action_msg,$session_name)
|
function action($action,$checked,$use_all,&$success,&$failed,&$action_msg,$session_name)
|
||||||
{
|
{
|
||||||
echo "<p>uicontacts::action('$action',".print_r($checked,true).','.(int)$use_all.",...)</p>\n";
|
//echo "<p>uicontacts::action('$action',".print_r($checked,true).','.(int)$use_all.",...)</p>\n";
|
||||||
$success = $failed = 0;
|
$success = $failed = 0;
|
||||||
|
|
||||||
if ($use_all)
|
if ($use_all)
|
||||||
@ -1068,7 +1068,7 @@ echo "<p>uicontacts::action('$action',".print_r($checked,true).','.(int)$use_all
|
|||||||
$GLOBALS['egw_info']['user']['account_firstname'],$GLOBALS['egw_info']['user']['account_lastname']),
|
$GLOBALS['egw_info']['user']['account_firstname'],$GLOBALS['egw_info']['user']['account_lastname']),
|
||||||
$content['id']));
|
$content['id']));
|
||||||
// create a new contact with the content of the old
|
// create a new contact with the content of the old
|
||||||
foreach(array('id','modified','modifier') as $key) unset($content[$key]);
|
foreach(array('id','modified','modifier','account_id') as $key) unset($content[$key]);
|
||||||
$content['owner'] = $this->prefs['add_default'] ? $this->prefs['add_default'] : $this->user;
|
$content['owner'] = $this->prefs['add_default'] ? $this->prefs['add_default'] : $this->user;
|
||||||
$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