mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '3'
This commit is contained in:
commit
71383b827d
@ -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,
|
||||||
|
@ -3,4 +3,3 @@
|
|||||||
<a href="$Link" title="$Title.ATT"><ins class="jstree-icon"> </ins>
|
<a href="$Link" title="$Title.ATT"><ins class="jstree-icon"> </ins>
|
||||||
<span class="text">$TreeTitle</span>
|
<span class="text">$TreeTitle</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
10
docs/en/04_Changelogs/rc/3.4.5-rc1.md
Normal file
10
docs/en/04_Changelogs/rc/3.4.5-rc1.md
Normal 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)
|
10
docs/en/04_Changelogs/rc/3.5.3-rc1.md
Normal file
10
docs/en/04_Changelogs/rc/3.5.3-rc1.md
Normal 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)
|
@ -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'
|
||||||
|
@ -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();
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user