fix autodetection for the week of the month

remotes/origin/stable
Georg Ehrke 13 years ago
parent edc9a150aa
commit a01a3d412c
  1. 3
      apps/calendar/lib/object.php

@ -683,7 +683,8 @@ class OC_Calendar_Object{
break;
}elseif($request['advanced_month_select'] == 'weekday'){
if($request['weekofmonthoptions'] == 'auto'){
$weekofmonth = floor($request['weekofmonthoptions']/7);
list($_day, $_month, $_year) = explode('-', $from);
$weekofmonth = floor($_day/7);
}else{
$weekofmonth = $request['weekofmonthoptions'];
}

Loading…
Cancel
Save