Skip to content

Commit

Permalink
Merge pull request #703 from TheRestartProject/RES-1943_event_API_cha…
Browse files Browse the repository at this point in the history
…nge_group

RES-1943 Don't allow change of a group for an event
  • Loading branch information
edwh authored Nov 27, 2023
2 parents d54f971 + 0b78d1c commit 583c258
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ public function createEventv2(Request $request)
* operationId="editEvent",
* tags={"Events"},
* summary="Edit Event",
* description="Edits an event.",
* description="Edits an event. The event of a group cannot be changed after creation.",
* @OA\Parameter(
* name="api_token",
* description="A valid user API token",
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/EventAddEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
:value.sync="idgroups"
:has-error="$v.idgroups.$error"
ref="eventGroup"
:disabled="!creating"
/>
<div class="form-group event-description">
<b-form-group>
Expand Down
6 changes: 6 additions & 0 deletions resources/js/components/EventGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
deselectLabel=""
:placeholder="__('partials.please_choose')"
:class="{ hasError: hasError }"
:disabled="disabled"
/>
<input type="hidden" name="group" :value="currentIdGroups" />
</b-form-group>
Expand All @@ -26,6 +27,11 @@ export default {
type: Boolean,
required: false,
default: false
},
disabled: {
type: Boolean,
required: false,
default: false
}
},
data () {
Expand Down

0 comments on commit 583c258

Please sign in to comment.