Author: nathangray
New Revision: 55104
URL: http://svn.stylite.de/viewvc/egroupware?rev=55104&view=rev
Log:
Prevent calendar owner selectbox from showing ‘#0’ for current user when using primary group or group members account selection options.
Modified:
branches/14.2/calendar/inc/class.calendar_ui.inc.php
— branches/14.2/calendar/inc/class.calendar_ui.inc.php (original)
+++ branches/14.2/calendar/inc/class.calendar_ui.inc.php Mon Feb 22 17:42:33 2016
@@ -790,6 +790,13 @@
}
// we no longer exclude non-accounts from the account-selection: it shows all types of participants
$accounts = explode(’,’,$this->owner);
+
-
// Remove '0' - it means current user but will show as #0 with some account selection options
-
$zero_index = array_search('0',$accounts);
-
if($zero_index !== FALSE)
-
{
-
$accounts[$zero_index] = $this->user;
-
}
$file[] = array(
'text' =>
$this->accountsel->selection('owner','uical_select_owner',$accounts,'calendar+',count($accounts) > 1 ? 4 : 1,False,
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs