Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2018-04-29 16:54:28 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2018-04-29 16:54:28 +0300
commit49e2a981580d575e170ac6060d2dfedb9a4e8f69 (patch)
treee278dc0099947375de0d194ea35669e029bb8b6a /templates
parenta568708411279b9925ed1eb48fd7b1ff0d7b2564 (diff)
Fix #14241 Dropping indexes and foreign keys fail
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/table/relation/foreign_key_row.twig7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/table/relation/foreign_key_row.twig b/templates/table/relation/foreign_key_row.twig
index caab9a4251..4e73bf1188 100644
--- a/templates/table/relation/foreign_key_row.twig
+++ b/templates/table/relation/foreign_key_row.twig
@@ -26,10 +26,9 @@
{% if one_key['constraint'] is defined %}
<input type="hidden" class="drop_foreign_key_msg" value="
{{- js_msg }}" />
- <a class="drop_foreign_key_anchor ajax" href="sql.php
- {{- Url_getCommon(this_params) }}">
- {{ Util_getIcon('b_drop', 'Drop'|trans) }}
- </a>
+ {% set drop_url = 'sql.php' ~ Url_getCommon(this_params) %}
+ {% set drop_str = Util_getIcon('b_drop', 'Drop'|trans) %}
+ {{ Util_linkOrButton(drop_url, drop_str, {'class': 'drop_foreign_key_anchor ajax'}) }}
{% endif %}
</td>
<td>