This commit is contained in:
@@ -1,4 +1,19 @@
|
||||
<?php if (!empty($schoolYearSelectorEnabled) && isset($schoolYearContext, $schoolYearOptions)): ?>
|
||||
<?php
|
||||
$currentPath = trim(service('request')->getUri()->getPath(), '/');
|
||||
$hiddenOnPaths = [
|
||||
'administrator/emergency_contact',
|
||||
'flags/flags_management',
|
||||
'administrator/calendar_view',
|
||||
'administrator/student_class_assignment',
|
||||
'administrator/sections/auto-distribute',
|
||||
'admin/enrollment/new-students',
|
||||
'payment/unpaid-parents',
|
||||
'discounts/list',
|
||||
'expenses/index',
|
||||
'reimbursements/index',
|
||||
];
|
||||
?>
|
||||
<?php if (!in_array($currentPath, $hiddenOnPaths, true) && !empty($schoolYearSelectorEnabled) && isset($schoolYearContext, $schoolYearOptions)): ?>
|
||||
<?php
|
||||
$query = service('request')->getUri()->getQuery();
|
||||
$returnTo = current_url() . ($query !== '' ? '?' . $query : '');
|
||||
|
||||
Reference in New Issue
Block a user