Calinc (#4429)
commitd2e483bb8c4c5611811025941538a94f5fe8625d
authorstephen waite <stephen.waite@cmsvt.com>
Mon, 31 May 2021 21:57:51 +0000 (31 17:57 -0400)
committerGitHub <noreply@github.com>
Mon, 31 May 2021 21:57:51 +0000 (31 17:57 -0400)
treed085f05e49ab1fc08c12a08ef0b686464ba2e51d
parente22f664ebd96e795b082925f9f27f3831363d0b1
Calinc (#4429)

* replace getIdFromUser in calendar.inc with UserService->getIdByUsername

* styling

* typo

* getUserByUsername() from UserService instead of calendar.inc

* remove unneccesary added function

* remove calendar.inc requires

* fix variable name, add BINARY to WHERE clause for exact case-sensitive username match

* simplify return; create 1 liner for UserService()

* convert other calls to getIdByUsername()
interface/main/calendar/modules/PostCalendar/pnuserapi.php
interface/patient_file/encounter/forms.php
library/ajax/adminacl_ajax.php
library/appointments.inc.php
library/calendar.inc
library/encounter_events.inc.php
src/Common/Acl/AclExtended.php
src/Services/UserService.php