Skip to content

Commit

Permalink
CONTRIB-9504 fix behaviour on absent student note
Browse files Browse the repository at this point in the history
  • Loading branch information
bostelm committed Jul 25, 2024
1 parent 6d9fb30 commit 8f16575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/model/appointment.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function is_attended() {
* @return boolean
*/
public function has_studentnotes() {
return $this->get_scheduler()->uses_studentnotes() &&
return $this->get_scheduler()->uses_studentnotes() && !empty($this->studentnote) &&
strlen(trim(strip_tags($this->studentnote))) > 0;
}

Expand Down

0 comments on commit 8f16575

Please sign in to comment.