From cd2177ec4b0fa58be20ca563cc7bcbd645126b93 Mon Sep 17 00:00:00 2001 From: thilinaa Date: Sat, 18 Aug 2012 07:35:04 +0530 Subject: [PATCH] missing links in more action drop down --- libraries/structure.lib.php | 48 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/libraries/structure.lib.php b/libraries/structure.lib.php index 712f988366..a000091f17 100644 --- a/libraries/structure.lib.php +++ b/libraries/structure.lib.php @@ -1836,28 +1836,26 @@ function PMA_getHtmlDivsForStructureActionsDropdown($class, $isActionEnabled, $common_functions = PMA_CommonFunctions::getInstance(); $html_output = '
'; - if (!empty ($isActionEnabled)) { - if ($isActionEnabled) { - $html_output .= 'backquote($GLOBALS['table']) + . ($isPrimary ? ($primary ? ' DROP PRIMARY KEY,' : '') : '') + . ' ' . $syntax . '(' + . $common_functions->backquote($row['Field']) . ');' + ) + . '&message_to_show=' . urlencode( + sprintf( + $message, + htmlspecialchars($row['Field']) ) - . '">' - . $hidden_titles - . ''; - } else { - $html_output .= $hidden_titles_no; - } + ) + . '">' + . $hidden_titles + . ''; + } else { + $html_output .= $hidden_titles_no; } $html_output .= '
'; @@ -1917,17 +1915,17 @@ function PMA_getHtmlForMoreOptionInTableStructure($rownum, $primary_enabled, if (!PMA_DRIZZLE) { $html_output .= PMA_getHtmlDivsForStructureActionsDropdown( 'action_spatial replace_in_more', - $fulltext_enabled, $url_query, $row, + $spatial_enabled, $url_query, $row, $hidden_titles['Spatial'], - $hidden_titles['NoSpatial'], false, 'ADD FULLTEXT', + $hidden_titles['NoSpatial'], false, 'ADD SPATIAL', __('An index has been added on %s'), false ); $html_output .= PMA_getHtmlDivsForStructureActionsDropdown( 'action_fulltext replace_in_more', - $spatial_enabled, $url_query, $row, + $fulltext_enabled, $url_query, $row, $hidden_titles['IdxFulltext'], - $hidden_titles['NoIdxFulltext'], false, 'ADD SPATIAL', + $hidden_titles['NoIdxFulltext'], false, 'ADD FULLTEXT', __('An index has been added on %s'), false );