mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Fix FLEXIAPI-404 Prevent the account domain to be reset during creation on error
This commit is contained in:
parent
9aeeb0fa73
commit
98d9d76225
2 changed files with 4 additions and 2 deletions
|
|
@ -44,7 +44,7 @@
|
|||
<div class="select">
|
||||
<select name="domain" @if (auth()->user()?->superAdmin) required @else disabled @endif>
|
||||
@foreach ($domains as $space)
|
||||
<option value="{{ $space->domain }}" @if ($account->domain == $space->domain) selected="selected" @endif>
|
||||
<option value="{{ $space->domain }}" @if ($account->domain == $space->domain || old('domain') == $space->domain) selected="selected" @endif>
|
||||
{{ $space->domain }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,9 @@
|
|||
</div>
|
||||
<div class="oppose">
|
||||
<a href="{{ route('admin.account.index') }}" type="reset" class="btn tertiary">{{ __('Reset') }}</a>
|
||||
<button type="submit" class="btn">{{ __('Search') }}</button>
|
||||
<button type="submit" class="btn">
|
||||
<i class="ph ph-magnifying-glass"></i>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue