mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:39:00 +01:00
* Calendar: configuration to automatic create links for participants from addressbook
This commit is contained in:
parent
c1acfdeb7b
commit
18af05e967
@ -1168,6 +1168,19 @@ class calendar_boupdate extends calendar_bo
|
||||
}
|
||||
if ($updateTS) $GLOBALS['egw']->contenthistory->updateTimeStamp('calendar', $cal_id, $event['id'] ? 'modify' : 'add', $this->now);
|
||||
|
||||
// create links for new participants from addressbook, if configured
|
||||
if ($cal_id && $GLOBALS['egw_info']['server']['link_contacts'])
|
||||
{
|
||||
foreach($event['participants'] as $uid => $status)
|
||||
{
|
||||
calendar_so::split_user($uid, $user_type, $user_id);
|
||||
if ($user_type == 'c' && (!$old_event || !isset($old_event['participants'][$uid])))
|
||||
{
|
||||
egw_link::link('calendar', $cal_id, 'addressbook', $user_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Update history
|
||||
$tracking = new calendar_tracking($this);
|
||||
if (empty($event['id']) && !empty($cal_id)) $event['id']=$cal_id;
|
||||
|
@ -100,6 +100,7 @@ create a new series calendar de Neue Serie anlegen
|
||||
create an exception for the given date calendar de Erzeugt eine Ausnahme am angegebenen Datum
|
||||
create an infolog from this event calendar de Erstelle ein InfoLog von diesem Termin
|
||||
create exception calendar de Ausnahme erzeugen
|
||||
create links for participants from addressbook calendar de Erzeuge Verknüpfungen für Teilnehmer aus dem Adressbuch
|
||||
create new links calendar de Neue Verknüpfung erstellen
|
||||
created calendar de Angelegt
|
||||
creator calendar de Ersteller
|
||||
|
@ -100,6 +100,7 @@ create a new series calendar en Create a new series
|
||||
create an exception for the given date calendar en Create an exception for the given date
|
||||
create an infolog from this event calendar en Create an InfoLog from this event
|
||||
create exception calendar en Create exception
|
||||
create links for participants from addressbook calendar en Create links for participants from addressbook
|
||||
create new links calendar en Create new links
|
||||
created calendar en Created
|
||||
creator calendar en Creator
|
||||
|
@ -119,6 +119,15 @@
|
||||
<td> {lang_Calendar_recurrence_horizont_in_days_(default_1000)}:</td>
|
||||
<td><input size="5" name="newsettings[calendar_horizont]" value="{value_calendar_horizont}"></td>
|
||||
</tr>
|
||||
<tr class="row_off">
|
||||
<td> {lang_Create_links_for_participants_from_addressbook}:</td>
|
||||
<td>
|
||||
<select name="newsettings[link_contacts]">
|
||||
<option value="">{lang_No}</option>
|
||||
<option value="yes"{selected_link_contacts_yes}>{lang_Yes}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- END body -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user