Skip to content

Commit 0a19d3a

Browse files
committed
Merge remote-tracking branch 'origin/oss' into oss
# Conflicts: # .all-contributorsrc # README.md # app/Http/Controllers/Admin/EnrollmentCrudController.php # composer.lock # yarn.lock
2 parents 1ce2837 + 0ceb359 commit 0a19d3a

File tree

5 files changed

+676
-677
lines changed

5 files changed

+676
-677
lines changed

.all-contributorsrc

+10
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@
120120
"contributions": [
121121
"code"
122122
]
123+
},
124+
{
125+
"login": "MizouziE",
126+
"name": "Sam",
127+
"avatar_url": "https://avatars.githubusercontent.com/u/90829439?v=4",
128+
"profile": "https://github.com/MizouziE",
129+
"contributions": [
130+
"code",
131+
"doc"
132+
]
123133
}
124134
],
125135
"contributorsPerLine": 7,

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# About this project
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3-
[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors-)
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-)
44
<!-- ALL-CONTRIBUTORS-BADGE:END -->
55

66
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/academico-sis/academico/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/academico-sis/academico/?branch=master)
@@ -38,6 +38,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
3838
<td align="center"><a href="https://bit.ly/doode-website"><img src="https://avatars.githubusercontent.com/u/1921806?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vitor Micillo</b></sub></a><br /><a href="#maintenance-vitormicillo" title="Maintenance">🚧</a></td>
3939
<td align="center"><a href="https://github.com/Dummdevka"><img src="https://avatars.githubusercontent.com/u/87282400?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tatiana Goloviznina</b></sub></a><br /><a href="https://github.com/academico-sis/academico/commits?author=Dummdevka" title="Code">💻</a></td>
4040
<td align="center"><a href="https://github.com/rm-yakovenko"><img src="https://avatars.githubusercontent.com/u/2056667?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rm Yakovenko</b></sub></a><br /><a href="https://github.com/academico-sis/academico/commits?author=rm-yakovenko" title="Code">💻</a></td>
41+
<td align="center"><a href="https://github.com/MizouziE"><img src="https://avatars.githubusercontent.com/u/90829439?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam</b></sub></a><br /><a href="https://github.com/academico-sis/academico/commits?author=MizouziE" title="Code">💻</a> <a href="https://github.com/academico-sis/academico/commits?author=MizouziE" title="Documentation">📖</a></td>
4142
</tr>
4243
</table>
4344

app/Http/Controllers/Admin/EnrollmentCrudController.php

-33
Original file line numberDiff line numberDiff line change
@@ -245,39 +245,6 @@ public function setupListOperation()
245245
'model' => PhoneNumber::class,
246246
],
247247
]);
248-
249-
if ($this->mode === 'global') {
250-
CRUD::addFilter([
251-
'name' => 'status_id',
252-
'type' => 'select2_multiple',
253-
'label' => __('Status'),
254-
],
255-
fn () => EnrollmentStatusType::all()->pluck('name', 'id')->toArray(),
256-
function ($values) {
257-
foreach (json_decode($values, null, 512, JSON_THROW_ON_ERROR) as $value) {
258-
CRUD::addClause('orWhere', 'status_id', $value);
259-
}
260-
}
261-
);
262-
263-
CRUD::addFilter(['name' => 'period_id',
264-
'type' => 'select2',
265-
'label' => __('Period'), ], fn () => Period::all()->pluck('name', 'id')->toArray(), function ($value) {
266-
CRUD::addClause('period', $value);
267-
});
268-
269-
CRUD::addFilter(['name' => 'scholarship',
270-
'type' => 'select2',
271-
'label' => __('Scholarship'), ], fn () => Scholarship::all()->pluck('name', 'id')->toArray(), function ($value) {
272-
if ($value == 'all') {
273-
CRUD::addClause('whereHas', 'scholarships');
274-
} else {
275-
CRUD::addClause('whereHas', 'scholarships', function ($q) use ($value) {
276-
$q->where('scholarships.id', $value);
277-
});
278-
}
279-
});
280-
}
281248
}
282249

283250
public function show($enrollment)

0 commit comments

Comments
 (0)