mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Merging fixes into trunk.
Revision: [2480] Adding fix for Ticket #662 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2482 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
a95a8c0a61
commit
ef9836b402
2 changed files with 7 additions and 2 deletions
|
@ -6,4 +6,4 @@
|
|||
// +---------------------------------------------------------------------------------------------------+ //
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
1.0.0.2479
|
||||
1.0.0.2482
|
|
@ -1390,7 +1390,12 @@ class DboSource extends DataSource
|
|||
{
|
||||
$value= ' '.$value;
|
||||
}
|
||||
$order[] = $this->order($this->name($key).$value);
|
||||
|
||||
if(!preg_match('/^.+\\(.*\\)/', $key))
|
||||
{
|
||||
$key = $this->name($key);
|
||||
}
|
||||
$order[] = $this->order($key.$value);
|
||||
}
|
||||
return ' ORDER BY '. r('ORDER BY', '', join(',', $order));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue