Fix new lines when adding an event.

1.10.x
Julio Montoya 10 years ago
parent 33a9576e0d
commit 30af87dcb7
  1. 7
      main/inc/lib/agenda.lib.php

@ -135,8 +135,9 @@ class Agenda
$start = api_get_utc_datetime($start);
$end = api_get_utc_datetime($end);
$allDay = isset($allDay) && $allDay == 'true' ? 1 : 0;
$id = null;
$content = nl2br($content);
switch ($this->type) {
case 'personal':
$attributes = array(
@ -1743,6 +1744,10 @@ class Agenda
$url = api_get_self().'?action='.$action.'&id='.$id.'&type='.$this->type;
}
if (isset($params['content'])) {
$params['content'] = nl2br($params['content']);
}
$form = new FormValidator(
'add_event',
'post',

Loading…
Cancel
Save