Преглед изворни кода

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