Fix drag and drop in calendar does not work if there's resources

This commit is contained in:
Hadi Nategh 2016-09-06 16:18:45 +02:00
parent 04c01fc0cc
commit b11de5b45f

View File

@ -2796,7 +2796,7 @@ class calendar_uiforms extends calendar_ui
calendar_so::split_status($status,$q,$r); calendar_so::split_status($status,$q,$r);
if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user && $status != 'U') if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user && $status != 'U')
{ {
$preferences = new Api\Preferenes($uid); $preferences = new Api\Preferences($uid);
$part_prefs = $preferences->read_repository(); $part_prefs = $preferences->read_repository();
switch ($part_prefs['calendar']['reset_stati']) switch ($part_prefs['calendar']['reset_stati'])
{ {