fix(helpdesk): fix manual domain value not submitted — use hidden input for domain_no

Select had name="domain_no" but JS was looking for input[name="domain_no"].
Moved name to a hidden input #wizard-domain-no; select syncs into it on
change; manual text input syncs into it on input event.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
aminovfariz
2026-06-08 10:22:19 +02:00
parent 57cb2f1017
commit e569e2d26c
2 changed files with 14 additions and 13 deletions

View File

@@ -150,10 +150,11 @@ if ($canManage && $mode === 'assign' && $step === 2) {
>
<label for="wizard-domain"><?php e(t('Domain')); ?> <span class="handover-form-required">*</span></label>
<div class="app-wizard-domain-select-wrap">
<select id="wizard-domain" name="domain_no" disabled>
<select id="wizard-domain" disabled>
<option value=""><?php e(t('Select a customer first...')); ?></option>
</select>
</div>
<input type="hidden" name="domain_no" id="wizard-domain-no" value="<?php e($form['domain_no'] ?? ''); ?>">
<input type="hidden" name="domain_url" id="wizard-domain-url" value="<?php e($form['domain_url'] ?? ''); ?>">
<div id="wizard-domain-feedback" class="app-wizard-field-feedback" role="alert" hidden></div>