Merge branch 'develop' into trunk

This commit is contained in:
Jérémy Munsch 2022-10-13 10:15:36 +02:00
commit 6f20a6b8db
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
4 changed files with 16 additions and 8 deletions

View file

@ -1,3 +1,6 @@
### 12.10.2022 -> 1.2.3
- Hotfixed regular users could not create tickets anymore
### 01.07.2022 -> 1.2.2
- Fixed CSP directives
- Fixed multiples bugs

View file

@ -100,15 +100,14 @@ class StoreTicket extends FormRequest
'file_ticket' => 'mimes:jpeg,jpg,png,pdf|max:2048',
'file_ticket2' => 'mimes:jpeg,jpg,png,pdf|max:2048',
'is_internal' => 'required|boolean',
'labels' => [
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
'sometimes', 'array', function ($attribute, $value, $fail) use ($user) {
'labels' => 'sometimes|array',
'labels.*' => [
'required', 'exists:labels,id', function ($attribute, $value, $fail) use ($user) {
if (!$user->can('assignLabels', Ticket::class)) {
$fail(trans('Vous n\'êtes pas autorisé à modifier cette valeur'));
}
}
],
'labels.*' => 'required|exists:labels,id'
]
];
}
}

View file

@ -1,6 +1,6 @@
{
"name": "ldcweb/supportweb",
"version": "1.2.2",
"version": "1.2.3",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [

View file

@ -729,7 +729,9 @@ export default defineComponent({
value: "",
},
currentModale: Modale = {
id: this.schedules[userid][slotkey][day as any]["id"] ?? this.__("Nouveau"),
id:
this.schedules[userid][slotkey][day as any]["id"] ??
this.__("Nouveau"),
userid: userid,
slot: slotkey,
day: day,
@ -871,7 +873,11 @@ export default defineComponent({
if (search !== false && search !== null) {
this.searchText = search;
}
route += "?page=" + this.page;
if (route.indexOf("?") < 0) {
route += "?page=" + this.page;
} else {
route += "&page=" + this.page;
}
route += "&s=" + this.searchText;
this.loading = true;
axios