Skip to content

Commit

Permalink
Planner: fix next lesson plan date not auto populating in Add Lesson …
Browse files Browse the repository at this point in the history
…Plan
  • Loading branch information
SKuipers committed Sep 9, 2024
1 parent ff8d2e4 commit 7a8ea4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ v28.0.00
Admissions: fixed the search results on the Manage Application page to include json data
Finance: fixed bulk exporting invoice fees for Pending invoices
Form Groups: fixed Year Group Summary list when looking at non-current school years
Planner: fixed next lesson plan date not auto populating in Add Lesson Plan
Timetable: fixed permission checking before displaying user status info in View Timetables list
System Admin: fixed the sanitization rules for application form fields to allow HTML

Expand Down
4 changes: 4 additions & 0 deletions modules/Planner/planner_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@

$formData = $container->get(FormSessionStorage::class);
$formData->load('plannerAdd');

if (!empty($nextDate)) {
$formData->addData(['date' => $nextDate, 'timeStart' => $nextTimeStart, 'timeEnd' => $nextTimeEnd]);
}

$form->loadAllValuesFrom($formData->getData());
$form->enableAutoSave($formId, $autoSaveUrl);
Expand Down

0 comments on commit 7a8ea4e

Please sign in to comment.