- Last Active
- Preferred Name
David, good question indeed! Giving someone a staff role (such as Teacher or Support Staff) is a step in the right direction, but you also need to register them as a member of staff. You can do this under People > Staff > Manage Staff. Once this is done, they will show up in lists in various places, such as in Manage Departments. Good luck! Ross.
OK, the fix is in place in v16, via the commit linked below:
To apply this to v15, you can find the file src/Gibbon/FileUploader.php, go to line 219 and replace mb_strpos with mb_strrpos (they look similar, but the extra r is important!).
Thanks to @sandra for the fix.
Nice work. Does not have to be perfect, as long as it works! If you look at the attached you'll see I have added indents to make it easier to read.
I don't have time to look now, but I think you could make this more efficient by taking the following:
JOIN gibbonStudentEnrolment ON (gibbonFinanceBillingSchedule.gibbonSchoolYearID=gibbonStudentEnrolment.gibbonSchoolYearID AND gibbonStudentEnrolment.gibbonSchoolYearID=(SELECT gibbonSchoolYearID FROM gibbonSchoolYear WHERE status='Current'))
and using a separate JOIN to link to gibbonSchoolYear and then checking for Current in WHERE. There is another similar case in there too. Something to consider!
Thanks for sharing : ))