Skip to content

Commit

Permalink
#250 [Session] add: default date end for meeting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Mar 7, 2023
1 parent 9929d2a commit a79314d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions view/session/session_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,14 @@
$_POST['date_starthour'] = $now['hours'];
$_POST['date_startmin'] = $now['minutes'];

if ($object->element = 'meeting') {
$_POST['date_endyear'] = $now['year'];
$_POST['date_endmonth'] = $now['mon'];
$_POST['date_endday'] = $now['mday'];
$_POST['date_endhour'] = $now['hours'] + 1;
$_POST['date_endmin'] = $now['minutes'];
}

// Common attributes
include DOL_DOCUMENT_ROOT . '/core/tpl/commonfields_add.tpl.php';

Expand Down

0 comments on commit a79314d

Please sign in to comment.