Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2014-04-28 17:52:51 +02:00
commit df0aeb5f73
3 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog
4.2.1.0 (not yet released)
- bug #4380 Cannot display table structure with enums containing special characters
- bug #4381 Cannot remove the last remembered sorted column
4.2.0.0 (not yet released)
+ rfe #1403 Export only triggers

View File

@ -47,6 +47,9 @@ function redirect(target, parent)
var head = URL['head'];
head = head.slice(0,head.indexOf('ORDER+BY'));
URL['head'] = head;
// removing the last sort order should have priority over what
// is remembered via the RememberSorting directive
URL['tail'] += '&discard_remembered_sort=1';
}
var middle_part = columns.join('%2C+');
url = URL['head'] + middle_part + URL['tail'];

View File

@ -1606,6 +1606,9 @@ class PMA_Table
// do checking based on property
if ($property == self::PROP_SORTED_COLUMN) {
if (isset($this->uiprefs[$property])) {
if (isset($_REQUEST['discard_remembered_sort'])) {
$this->removeUiProp(self::PROP_SORTED_COLUMN);
}
// check if the column name exists in this table
$tmp = explode(' ', $this->uiprefs[$property]);
$colname = $tmp[0];