Fix #12073 Hide edit and delete buttons when the results are not related to a table
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
5125fc3bc0
commit
ff743830ff
@ -49,6 +49,7 @@ phpMyAdmin - ChangeLog
|
||||
- issue Fix SQL syntax highlighting in database search page
|
||||
- issue #12056 Fix error when we can not generate random string
|
||||
- issue #12055 Fixed PHP syntax error in templates
|
||||
- issue #12073 Hide edit and delete buttons when the results are not related to a table
|
||||
|
||||
4.5.5.1 (2016-02-29)
|
||||
- issue #11971 CREATE UNIQUE INDEX index type is not recognized by parser.
|
||||
|
||||
@ -572,6 +572,13 @@ class DisplayResults
|
||||
$prev_table = $fields_meta[$i]->table;
|
||||
}
|
||||
} // end for
|
||||
|
||||
if ($prev_table == '') { // no table for any of the columns
|
||||
// don't display links
|
||||
$displayParts['edit_lnk'] = self::NO_EDIT_OR_DELETE;
|
||||
$displayParts['del_lnk'] = self::NO_EDIT_OR_DELETE;
|
||||
}
|
||||
|
||||
return $displayParts;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user