bug in makegrid.js: where_clause is undefined

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2014-10-25 08:58:20 -04:00
parent 2a67e3340d
commit 1e51819d6e
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ phpMyAdmin - ChangeLog
- bug #4557 PHP fatal error, undefined function __()
- bug #4568 Date displayed incorrectly when charting a timeline
- bug #4571 Database Privileges link does not work
- bug makegrid.js: where_clause is undefined
4.2.10.1 (2014-10-21)
- bug #4562 [security] XSS in debug SQL output

View File

@ -1102,6 +1102,9 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
$('td.to_be_saved').parents('tr').each(function () {
var $tr = $(this);
var where_clause = $tr.find('.where_clause').val();
if (typeof where_clause === 'undefined') {
where_clause = '';
}
full_where_clause.push(PMA_urldecode(where_clause));
var condition_array = jQuery.parseJSON($tr.find('.condition_array').val());