소스 검색

Merge remote-tracking branch 'origin/1.10.x'

Julio Montoya 9 년 전
부모
커밋
8a7d197d98
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      main/inc/lib/agenda.lib.php

+ 2 - 5
main/inc/lib/agenda.lib.php

@@ -156,13 +156,10 @@ class Agenda
                     'text' => $content,
                     'date' => $start,
                     'enddate' => $end,
-                    'all_day' => $allDay
+                    'all_day' => $allDay,
+                    'color' => $color
                 );
 
-                if ($this->allowEventColoring) {
-                    $attributes['color'] = $color;
-                }
-
                 $id = Database::insert(
                     $this->tbl_personal_agenda,
                     $attributes