Adding missing sys_calendar.all_day field

skala
Julio Montoya 14 years ago
parent 10d779607a
commit d9105b2b14
  1. 8
      main/admin/index.php
  2. 6
      main/calendar/agenda.lib.php

@ -127,12 +127,12 @@ if (api_is_platform_admin()) {
$blocks['platform']['label'] = api_ucfirst(get_lang('Platform'));
$items = array();
$items[] = array('url'=>'settings.php', 'label' => get_lang('DokeosConfigSettings'));
$items[] = array('url'=>'settings.php', 'label' => get_lang('DokeosConfigSettings'));
$items[] = array('url'=>'system_announcements.php', 'label' => get_lang('SystemAnnouncements'));
$items[] = array('url'=>'calendar.php', 'label' => get_lang('GlobalAgenda'));
$items[] = array('url'=>'configure_homepage.php', 'label' => get_lang('ConfigureHomePage'));
$items[] = array('url'=>api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?type=admin', 'label' => get_lang('GlobalAgenda'));
$items[] = array('url'=>'configure_homepage.php', 'label' => get_lang('ConfigureHomePage'));
$items[] = array('url'=>'configure_inscription.php', 'label' => get_lang('ConfigureInscription'));
$items[] = array('url'=>'statistics/index.php', 'label' => get_lang('Statistics'));
$items[] = array('url'=>'statistics/index.php', 'label' => get_lang('Statistics'));
if (!empty($_configuration['multiple_access_urls'])) {
if (api_is_global_platform_admin()) {

@ -43,8 +43,8 @@ class Agenda {
$all_day = isset($all_day) && $all_day == 'true' ? 1:0;
$attributes = array();
$id = null;
switch($this->type) {
$id = null;
switch ($this->type) {
case 'personal':
$attributes['user'] = api_get_user_id();
$attributes['title'] = $title;
@ -75,7 +75,7 @@ class Agenda {
$attributes['start_date'] = $start;
$attributes['end_date'] = $end;
$attributes['all_day'] = $all_day;
$attributes['access_url_id'] = api_get_current_access_url_id();
$attributes['access_url_id']= api_get_current_access_url_id();
$id = Database::insert($this->tbl_global_agenda, $attributes);
break;
}

Loading…
Cancel
Save