Merge branch '3'

This commit is contained in:
Daniel Hensby 2017-02-08 10:50:45 +00:00
commit 71383b827d
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
8 changed files with 29 additions and 9 deletions

View File

@ -1345,7 +1345,7 @@ class LeftAndMain extends Controller implements PermissionProvider
} }
$link = Controller::join_links($recordController->Link("show"), $record->ID); $link = Controller::join_links($recordController->Link("show"), $record->ID);
$html = LeftAndMain_TreeNode::create($record, $link, $this->isCurrentPage($record))->forTemplate() ; $html = LeftAndMain_TreeNode::create($record, $link, $this->isCurrentPage($record))->forTemplate(). '</li>';
$data[$id] = array( $data[$id] = array(
'html' => $html, 'html' => $html,

View File

@ -3,4 +3,3 @@
<a href="$Link" title="$Title.ATT"><ins class="jstree-icon">&nbsp;</ins> <a href="$Link" title="$Title.ATT"><ins class="jstree-icon">&nbsp;</ins>
<span class="text">$TreeTitle</span> <span class="text">$TreeTitle</span>
</a> </a>
</li>

View File

@ -490,7 +490,7 @@ The `<% with %>` tag lets you change into a new scope. Consider the following ex
This is functionalty the same as the following: This is functionalty the same as the following:
:::ss :::ss
Hello, $CurrentMember.FirstName, welcome back. Yout current balance is $CurrentMember.Balance Hello, $CurrentMember.FirstName, welcome back. Your current balance is $CurrentMember.Balance
Notice that the first example is much tidier, as it removes the repeated use of the `$CurrentMember` accessor. Notice that the first example is much tidier, as it removes the repeated use of the `$CurrentMember` accessor.

View File

@ -0,0 +1,10 @@
# 3.4.5-rc1
<!--- Changes below this line will be automatically regenerated -->
## Change Log
### Bugfixes
* 2017-01-30 [10d9f90](https://github.com/silverstripe/silverstripe-cms/commit/10d9f9080b6cc6c909abdae796e8ce944036ccc2) to allow ASSETS_DIR to be a subdirectory (Brendan Halley)
* 2017-02-08 [0fe4ec4](https://github.com/silverstripe/silverstripe-framework/commit/0fe4ec4537899fa90870647233772551204ff2a5) Fix issue with nested tree view (Daniel Hensby)

View File

@ -0,0 +1,10 @@
# 3.5.3-rc1
<!--- Changes below this line will be automatically regenerated -->
## Change Log
### Bugfixes
* 2017-01-30 [10d9f90](https://github.com/silverstripe/silverstripe-cms/commit/10d9f9080b6cc6c909abdae796e8ce944036ccc2) to allow ASSETS_DIR to be a subdirectory (Brendan Halley)
* 2017-02-08 [0fe4ec4](https://github.com/silverstripe/silverstripe-framework/commit/0fe4ec4537899fa90870647233772551204ff2a5) Fix issue with nested tree view (Daniel Hensby)

View File

@ -467,6 +467,7 @@ cs:
PASSWORD: Heslo PASSWORD: Heslo
PASSWORDEXPIRED: 'Vaše heslo expirovalo. Prosím, zvolte nové heslo.' PASSWORDEXPIRED: 'Vaše heslo expirovalo. Prosím, zvolte nové heslo.'
PLURALNAME: Členové PLURALNAME: Členové
REMEMBERME: "Zapamatovat si mě pro příště?"
SINGULARNAME: Člen SINGULARNAME: Člen
SUBJECTPASSWORDCHANGED: 'Vaše heslo bylo změněno' SUBJECTPASSWORDCHANGED: 'Vaše heslo bylo změněno'
SUBJECTPASSWORDRESET: 'Nulovací odkaz pro Vaše heslo' SUBJECTPASSWORDRESET: 'Nulovací odkaz pro Vaše heslo'

View File

@ -149,7 +149,7 @@ class Hierarchy extends DataExtension
*/ */
public function getChildrenAsUL( public function getChildrenAsUL(
$attributes = "", $attributes = "",
$titleEval = '"<li>" . $child->Title . "</li>"', $titleEval = '"<li>" . $child->Title',
$extraArg = null, $extraArg = null,
$limitToMarked = false, $limitToMarked = false,
$childrenMethod = "AllChildrenIncludingDeleted", $childrenMethod = "AllChildrenIncludingDeleted",
@ -202,10 +202,6 @@ class Hierarchy extends DataExtension
} else { } else {
$output .= eval("return $titleEval;"); $output .= eval("return $titleEval;");
} }
$output = trim($output);
if (substr($output, -5) == '</li>') {
$output = trim(substr($output, 0, -5));
}
$output .= "\n"; $output .= "\n";
$numChildren = $child->$numChildrenMethod(); $numChildren = $child->$numChildrenMethod();

View File

@ -40,13 +40,17 @@ class SQLSelectTest extends SapphireTest
//basic counting //basic counting
$qry = SQLSelectTest\TestObject::get()->dataQuery()->getFinalisedQuery(); $qry = SQLSelectTest\TestObject::get()->dataQuery()->getFinalisedQuery();
$qry->setGroupBy('"Common"');
$ids = $this->allFixtureIDs(SQLSelectTest\TestObject::class); $ids = $this->allFixtureIDs(SQLSelectTest\TestObject::class);
$count = $qry->count('"SQLSelectTest_DO"."ID"'); $count = $qry->count('"SQLSelectTest_DO"."ID"');
$this->assertEquals(count($ids), $count); $this->assertEquals(count($ids), $count);
$this->assertInternalType("int", $count); $this->assertInternalType("int", $count);
//test with `having` //test with `having`
if (DB::get_conn() instanceof MySQLDatabase) { if (DB::get_conn() instanceof MySQLDatabase) {
$qry->setSelect(array(
'Date' => 'MAX("Date")',
'Common' => '"Common"',
));
$qry->setGroupBy('"Common"');
$qry->setHaving('"Date" > 2012-02-01'); $qry->setHaving('"Date" > 2012-02-01');
$count = $qry->count('"SQLSelectTest_DO"."ID"'); $count = $qry->count('"SQLSelectTest_DO"."ID"');
$this->assertEquals(1, $count); $this->assertEquals(1, $count);