mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge branch '3.4' into 3.5.0
This commit is contained in:
commit
3e36f5691b
@ -313,7 +313,7 @@ class Versioned extends DataExtension implements TemplateGlobalProvider {
|
||||
// Ensure that any sort order referring to this ID is correctly aliased
|
||||
$orders = $query->getOrderBy();
|
||||
foreach($orders as $order => $dir) {
|
||||
if($order === "\"$baseTable\".\"ID\"") {
|
||||
if($order === "\"$baseTable\".\"ID\"" || trim($order, "'\"") === "ID") {
|
||||
unset($orders[$order]);
|
||||
$orders["\"{$baseTable}_versions\".\"RecordID\""] = $dir;
|
||||
}
|
||||
|
@ -497,6 +497,8 @@ class UploadFieldTest extends FunctionalTest {
|
||||
}
|
||||
|
||||
public function testEdit() {
|
||||
//for some reason the date_format is being set to null
|
||||
Config::inst()->update('i18n', 'date_format', 'yyyy-MM-dd');
|
||||
$memberID = $this->loginWithPermission('ADMIN');
|
||||
|
||||
$record = $this->objFromFixture('UploadFieldTest_Record', 'record1');
|
||||
|
Loading…
x
Reference in New Issue
Block a user