mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 16:35:02 +02:00
Record share emails in history log & display them instead of user when set
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
/* Basic information about this app */
|
||||
$setup_info['api']['name'] = 'api';
|
||||
$setup_info['api']['title'] = 'EGroupware API';
|
||||
$setup_info['api']['version'] = '17.1.001';
|
||||
$setup_info['api']['version'] = '17.1.002';
|
||||
$setup_info['api']['versions']['current_header'] = '1.29';
|
||||
// maintenance release in sync with changelog in doc/rpm-build/debian.changes
|
||||
$setup_info['api']['versions']['maintenance_release'] = '17.1.20180523';
|
||||
|
@ -154,7 +154,8 @@ $phpgw_baseline = array(
|
||||
'history_new_value' => array('type' => 'text','nullable' => False),
|
||||
'history_timestamp' => array('type' => 'timestamp','nullable' => False,'default' => 'current_timestamp'),
|
||||
'history_old_value' => array('type' => 'text','nullable' => False),
|
||||
'sessionid' => array('type' => 'int','precision' => '4','comment' => 'primary key to egw_access_log')
|
||||
'sessionid' => array('type' => 'int','precision' => '4','comment' => 'primary key to egw_access_log'),
|
||||
'share_email' => array('type' => 'varchar','precision' => '4096','nullable' => True,'default'=> NULL,'comment' => 'email addresses of share who made the change, comma seperated')
|
||||
),
|
||||
'pk' => array('history_id'),
|
||||
'fk' => array(),
|
||||
|
@ -422,4 +422,19 @@ function api_upgrade17_1()
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['api']['currentver'] = '17.1.001';
|
||||
}
|
||||
|
||||
/**
|
||||
* Add field to history log for share email address, if available
|
||||
*/
|
||||
function api_upgrade17_1_001()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->AddColumn('egw_history_log','share_email',array(
|
||||
'type' => 'varchar',
|
||||
'precision' => '4096',
|
||||
'default' => NULL,
|
||||
'nullable' => True,
|
||||
'comment' => 'email addresses of share who made the change, comma seperated'
|
||||
));
|
||||
return $GLOBALS['setup_info']['api']['currentver'] = '17.1.002';
|
||||
}
|
Reference in New Issue
Block a user