@@ -177,6 +177,9 @@ |
||
| 177 | 177 | return $res; |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | + /** |
|
| 181 | + * @param Data\DataTable $dataTable |
|
| 182 | + */ |
|
| 180 | 183 | public function makeCopy($dataTable) |
| 181 | 184 | { |
| 182 | 185 | $tmp = $this->dbData; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | protected function canUpdate($request, $entity) |
| 36 | 36 | { |
| 37 | - if($this->isVolunteerAdmin($request)) |
|
| 37 | + if($this->isVolunteerAdmin($request)) |
|
| 38 | 38 | { |
| 39 | 39 | return true; |
| 40 | 40 | } |
@@ -107,8 +107,8 @@ discard block |
||
| 107 | 107 | $ret = $dataTable->update($filter, $entArray[$i]); |
| 108 | 108 | if($ret === false) |
| 109 | 109 | { |
| 110 | - $myRet = false; |
|
| 111 | - array_push($errors, $array[$i]); |
|
| 110 | + $myRet = false; |
|
| 111 | + array_push($errors, $array[$i]); |
|
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | if($myRet) |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | $entity = $this->processShift($entity, $request); |
| 197 | 197 | if(isset($entity['minShifts']) && $entity['minShifts'] > 0) |
| 198 | 198 | { |
| 199 | - $shift->makeCopy($dataTable); |
|
| 199 | + $shift->makeCopy($dataTable); |
|
| 200 | 200 | } |
| 201 | 201 | if(isset($entity['overlap']) && $entity['overlap']) |
| 202 | 202 | { |