From 37dff129010b54c90156f55e8e61ef4e7ac850d1 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 28 Sep 2011 10:14:24 +0530 Subject: [PATCH] bug #3390832 [display] Delete records from last page breaks search --- ChangeLog | 1 + sql.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a45a6cad1..ec2549ff5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ phpMyAdmin - ChangeLog - bug #3413743 [interface] Display options link missing after search - bug #3324161 [core] CSP policy causing designer JS buttons to fail - bug #3412862 [relation] Relations/constraints are dropped/created on every change +- bug #3390832 [display] Delete records from last page breaks search 3.4.5.0 (2011-09-14) - bug #3375325 [interface] Page list in navigation frame looks odd diff --git a/sql.php b/sql.php index 83900ab5f..6caeb7b0c 100644 --- a/sql.php +++ b/sql.php @@ -580,7 +580,7 @@ if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) { } // end else "didn't ask to see php code" // No rows returned -> move back to the calling page -if (0 == $num_rows || $is_affected) { +if ((0 == $num_rows && 0 == $unlim_num_rows) || $is_affected) { if ($is_delete) { $message = PMA_Message::deleted_rows($num_rows); } elseif ($is_insert) {