Merge #16731 - Fix #16716 - Rename disappears after column drop

Pull-request: #16731
Fixes: #16716

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-03-14 15:14:17 +01:00
commit 337df3a63e
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -7,11 +7,11 @@
{% if indexes is not empty %}
{{ indexes_duplicates|raw }}
<div class="responsivetable jsresponsive">
<table class="pma-table" id="table_index">
<thead>
<tr>
<th colspan="2" class="print_ignore">{% trans 'Action' %}</th>
<div class="table-responsive jsresponsive">
<table class="table table-light table-striped table-hover table-sm w-auto" id="table_index">
<thead class="thead-light">
<tr>
<th colspan="3" class="print_ignore">{% trans 'Action' %}</th>
<th>{% trans 'Keyname' %}</th>
<th>{% trans 'Type' %}</th>
<th>{% trans 'Unique' %}</th>
@ -33,6 +33,11 @@
{{ get_icon('b_edit', 'Edit'|trans) }}
</a>
</td>
<td rowspan="{{ columns_count }}" class="rename_index print_ignore ajax" >
<a class="ajax" href="{{ url('/table/indexes/rename') }}" data-post="{{ get_common(url_params|merge({'index': index.getName()}), '') }}">
{{ get_icon('b_rename', 'Rename'|trans) }}
</a>
</td>
<td rowspan="{{ columns_count }}" class="print_ignore">
{% if index.getName() == 'PRIMARY' %}
{% set index_params = {