Calendar Events: use client_id instead of client in POST and enforceClientAccess if client is assigned to an event

This commit is contained in:
johnnyq
2026-03-06 15:59:18 -05:00
parent df5c350765
commit 3983c45cac
4 changed files with 27 additions and 12 deletions

View File

@@ -120,7 +120,7 @@
<div class="tab-pane fade" id="pills-attendees">
<?php if (isset($client_id)) { ?>
<input type="hidden" name="client" value="<?php echo $client_id; ?>">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<?php } else{ ?>
<div class="form-group">
@@ -129,7 +129,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
</div>
<select class="form-control select2" name="client">
<select class="form-control select2" name="client_id">
<option value="">- Client -</option>
<?php

View File

@@ -143,7 +143,7 @@ ob_start();
<div class="tab-pane fade" id="pills-attendees<?php echo $event_id; ?>">
<?php if (isset($_GET['client_id'])) { ?>
<input type="hidden" name="client" value="<?php echo $client_id; ?>">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<?php } else { ?>
<div class="form-group">