@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | function get_secure_menu_entries($page, $user) |
| 5 | 5 | { |
| 6 | 6 | $ret = array( |
| 7 | - 'Volunteer' => $page->secure_root.'fvs/index.php' |
|
| 7 | + 'Volunteer' => $page->secure_root.'fvs/index.php' |
|
| 8 | 8 | ); |
| 9 | 9 | if($user !== null && $user->isInGroupNamed('VolunteerAdmins')) |
| 10 | 10 | { |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | function get_plugin_entry_point() |
| 17 | 17 | { |
| 18 | 18 | return array( |
| 19 | - 'name'=>'Volunteer', |
|
| 20 | - 'link' => 'fvs/index.php' |
|
| 19 | + 'name'=>'Volunteer', |
|
| 20 | + 'link' => 'fvs/index.php' |
|
| 21 | 21 | ); |
| 22 | 22 | } |
| 23 | 23 | } |
@@ -47,10 +47,10 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | for($i = 0; $i < $certCount; $i++) |
| 49 | 49 | { |
| 50 | - if($this->certCheck($requirements, $userCerts, $certs[$i]['certID'])) |
|
| 51 | - { |
|
| 52 | - return array('whyClass' => 'CERT', 'whyMsg' => 'Shift requires '.$certs[$i]['name'].' and you do not have that certification'); |
|
| 53 | - } |
|
| 50 | + if($this->certCheck($requirements, $userCerts, $certs[$i]['certID'])) |
|
| 51 | + { |
|
| 52 | + return array('whyClass' => 'CERT', 'whyMsg' => 'Shift requires '.$certs[$i]['name'].' and you do not have that certification'); |
|
| 53 | + } |
|
| 54 | 54 | } |
| 55 | 55 | return true; |
| 56 | 56 | } |
@@ -178,15 +178,15 @@ discard block |
||
| 178 | 178 | { |
| 179 | 179 | if(isset($entry['volunteer'])) |
| 180 | 180 | { |
| 181 | - unset($entry['volunteer']); |
|
| 181 | + unset($entry['volunteer']); |
|
| 182 | 182 | } |
| 183 | 183 | if(isset($entry['why'])) |
| 184 | 184 | { |
| 185 | - unset($entry['why']); |
|
| 185 | + unset($entry['why']); |
|
| 186 | 186 | } |
| 187 | 187 | if(isset($entry['whyClass'])) |
| 188 | 188 | { |
| 189 | - unset($entry['whyClass']); |
|
| 189 | + unset($entry['whyClass']); |
|
| 190 | 190 | } |
| 191 | 191 | } |
| 192 | 192 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $tmp = $dataTable->read(); |
| 209 | 209 | foreach($tmp as $role) |
| 210 | 210 | { |
| 211 | - $roles[$role['short_name']] = $role; |
|
| 211 | + $roles[$role['short_name']] = $role; |
|
| 212 | 212 | } |
| 213 | 213 | } |
| 214 | 214 | $this->cleanupNonDBFields($entry); |
@@ -52,13 +52,13 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | if(!isset($obj['departmentID'])) |
| 54 | 54 | { |
| 55 | - return false; |
|
| 55 | + return false; |
|
| 56 | 56 | } |
| 57 | 57 | if(isset($obj['unbounded']) && $obj['unbounded']) |
| 58 | 58 | { |
| 59 | 59 | if(!isset($obj['minShifts']) || $obj['minShifts'] === 0 || $obj['minShifts'] === '') |
| 60 | 60 | { |
| 61 | - $obj['minShifts'] = '1'; |
|
| 61 | + $obj['minShifts'] = '1'; |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | return $this->isUserDepartmentLead($obj['departmentID'], $this->user); |
@@ -159,8 +159,8 @@ discard block |
||
| 159 | 159 | $ret = $dataTable->update($filter, $entArray[$i]); |
| 160 | 160 | if($ret === false) |
| 161 | 161 | { |
| 162 | - $myRet = false; |
|
| 163 | - array_push($errors, $array[$i]); |
|
| 162 | + $myRet = false; |
|
| 163 | + array_push($errors, $array[$i]); |
|
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | if($myRet) |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | $entity = $this->processShift($entity, $request); |
| 266 | 266 | if(isset($entity['minShifts']) && $entity['minShifts'] > 0) |
| 267 | 267 | { |
| 268 | - $shift->makeCopy($dataTable); |
|
| 268 | + $shift->makeCopy($dataTable); |
|
| 269 | 269 | } |
| 270 | 270 | if(isset($entity['overlap']) && $entity['overlap']) |
| 271 | 271 | { |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | $entity['status'] = 'unfilled'; |
| 332 | 332 | if(isset($entity['needEEApproval'])) |
| 333 | 333 | { |
| 334 | - unset($entity['needEEApproval']); |
|
| 334 | + unset($entity['needEEApproval']); |
|
| 335 | 335 | } |
| 336 | 336 | return $response->withJSON($dataTable->update($filter, $entity)); |
| 337 | 337 | } |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | $entity['status'] = 'unfilled'; |
| 529 | 529 | if(isset($entity['needEEApproval'])) |
| 530 | 530 | { |
| 531 | - unset($entity['needEEApproval']); |
|
| 531 | + unset($entity['needEEApproval']); |
|
| 532 | 532 | } |
| 533 | 533 | $ret = $dataTable->update($filter, $entity); |
| 534 | 534 | if($ret) |
@@ -563,7 +563,7 @@ discard block |
||
| 563 | 563 | $entity['status'] = 'unfilled'; |
| 564 | 564 | if(isset($entity['needEEApproval'])) |
| 565 | 565 | { |
| 566 | - unset($entity['needEEApproval']); |
|
| 566 | + unset($entity['needEEApproval']); |
|
| 567 | 567 | } |
| 568 | 568 | return $response->withJSON($dataTable->update($filter, $entity)); |
| 569 | 569 | } |