Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-05-02 12:30:09 +02:00
commit 6a30bc84ca
2 changed files with 22 additions and 8 deletions

View File

@ -38,6 +38,7 @@ phpMyAdmin - ChangeLog
- bug #4878 Column list of central columns is not cleared
- bug #4881 jQuery dialogs of the Designer are not displayed in fullscreen
- bug #4883 Search function breaks when searching for certain combinations of backslashes and slashes
- bug #4830 Maximum execution time exceeded in Util.class.php (better fix)
4.4.4.0 (2015-04-26)
- bug #4863 Edit vs Change

View File

@ -2845,6 +2845,8 @@ class PMA_DisplayResults
$row_info = $this->_getRowInfoForSpecialLinks($row, $col_order);
$previousMetaOrgTable = '';
$columnCount = $this->__get('fields_cnt');
for ($currentColumn = 0;
$currentColumn < $columnCount;
@ -2989,14 +2991,25 @@ class PMA_DisplayResults
'transform_key' => $meta->name,
);
$unique_conditions = PMA_Util::getUniqueCondition(
$dt_result,
$this->__get('fields_cnt'),
$this->__get('fields_meta'),
$row,
false,
$meta->orgtable
);
/*
* The result set can have columns from more than one table,
* this is why we have to check for the unique conditions
* related to this table; however getUniqueCondition() is
* costly and does not need to be called if we already know
* the conditions for the current table.
*/
if ($meta->orgtable != $previousMetaOrgTable) {
$unique_conditions = PMA_Util::getUniqueCondition(
$dt_result,
$this->__get('fields_cnt'),
$this->__get('fields_meta'),
$row,
false,
$meta->orgtable
);
$previousMetaOrgTable = $meta->orgtable;
}
$transform_url_params = array(
'db' => $this->__get('db'),