Commit Graph

4485 Commits

Author SHA1 Message Date
Loz Calver
b6589ba9a9 NEW: Page types no longer require a controller, they can inherit the parent page type's
Use ClassInfo::ancestry() instead of get_parent_class()

Fall back to ContentController by default
2013-10-23 16:44:59 +01:00
Ingo Schommer
ef0f633f46 Merge remote-tracking branch 'origin/3.1' 2013-10-23 14:53:33 +02:00
Ingo Schommer
3d9fc2cc4c Default CMSMain to Versioned::reading_stage("Stage")
Regression caused by https://github.com/silverstripe/silverstripe-framework/pull/2585
2013-10-23 14:29:24 +02:00
Mateusz U
27c8122123 Merge pull request #880 from halkyon/fulltextsearch_text
ContentControllerSearchExtensionTest doesn't clean up after itself.
2013-10-21 21:14:34 -07:00
Sean Harvey
ed8ee4e9b8 ContentControllerSearchExtensionTest doesn't clean up after itself.
The problem is FulltextSearchable::enable() does two things:
It enables the extension, as well as sets the MySQL create table option
to MyISAM. Later tests run with the extension enabled, because it doesn't
get removed at the end of the test, but the table type is set back to
InnoDB when the test is reset and schema recreated.

This produces side-effects where later tests in a suite tries to run
ALTER TABLE on File and add fulltext indexes when the table type
is set to InnoDB, causing an error.
2013-10-22 15:26:40 +13:00
Ingo Schommer
da1a875c4f Revert "Moved Behat reports tests to module"
This reverts commit 50a48aa25d.
The test in question relies on SiteTree data *as well* as the
reports module, so needs to be placed here.
2013-10-21 09:33:45 +02:00
Ingo Schommer
c645d76b1f Merge pull request #879 from sheadawson/833-currentPageID
Add hook for extensions to update current page id, before falling ...
2013-10-21 00:24:06 -07:00
sheadawson
1b5465809d MINOR add hook for extensions to update current page id, before falling back to default 2013-10-21 17:42:45 +11:00
Ingo Schommer
50a48aa25d Moved Behat reports tests to module 2013-10-21 01:00:29 +02:00
Ingo Schommer
0a1ffd3e1a Merge remote-tracking branch 'origin/3.1'
Conflicts:
	.travis.yml
2013-10-20 13:51:19 +02:00
Ingo Schommer
b884671bfb Behat travis tests 2013-10-16 16:11:21 +02:00
Ingo Schommer
611772c5ec Merge pull request #876 from cieszak/3.1
FIX Remove invalid single quote
2013-10-15 16:13:40 -07:00
Dawid Cieszyński
69ae8a8fed FIX Remove invalid single quote 2013-10-16 00:06:41 +02:00
Ingo Schommer
aae6b2b296 Avoid encoded HTML breadcrumbs 2013-10-11 00:27:21 +02:00
Ingo Schommer
c8dc9a9377 Merge pull request #873 from ajshort/pull-2
Add an extension hook for customising site tree hints.
2013-10-10 09:23:03 -07:00
Andrew Short
68d254c3c4 Add an extension hook for customising site tree hints. 2013-10-11 01:31:07 +11:00
Ingo Schommer
b08c70748f Merge pull request #871 from simonwelsh/3.1-scroll
Calculate where to scroll to based off the position in the div
2013-10-10 03:48:24 -07:00
Ingo Schommer
42a55be91a Updated translations 2013-10-10 12:34:15 +02:00
Ingo Schommer
dd29936fee Merge remote-tracking branch 'origin/3.1' 2013-10-10 12:10:20 +02:00
Simon Welsh
0c2514d13e Calculate where to scroll to based off the position in the div
Also, only scroll if not currently visible.
2013-10-10 15:42:49 +13:00
Simon Welsh
095c78426b Merge pull request #870 from ajshort/pull-1
BUG: Fix add new button not passing the correct parent ID.
2013-10-09 19:26:51 -07:00
Andrew Short
b7476f2a46 BUG: Fix add new button not passing the correct parent ID.
The `%s` parent ID placeholder was being URL encoded, so it was not being
replaced properly when adding a new page. This fix separately adds
placeholder parameters to the URL to avoid this issue.

The fix is not ideal, but there is no easy way to indicate that some
URL parameters should be URL encoded and others should not while still
correctly constructing the URL.
2013-10-10 13:09:24 +11:00
Ingo Schommer
c3e25e9e07 Merge pull request #863 from kinglozzer/2449-getcmsvalidator-restore-pages-fix
FIX Don't validate pages when restoring or reverting (fixes silverstripe/silverstripe-framework#2449)
2013-10-09 01:53:47 -07:00
Ingo Schommer
34a0fe3bf1 Chinese translation encoding 2013-10-08 12:20:21 +02:00
Ingo Schommer
6a8de3090c Updated Te Reo translations 2013-10-08 11:37:43 +02:00
Ingo Schommer
16d8505bbb Merge remote-tracking branch 'origin/3.1' 2013-10-08 11:22:00 +02:00
Ingo Schommer
d532d05fc2 Moved manage-files.feature from framework
It relies on AssetAdmin which is placed in the 'cms' module
2013-10-08 11:20:50 +02:00
Ingo Schommer
f6c7bbb1ff Merge remote-tracking branch 'origin/3.1' 2013-10-08 11:17:14 +02:00
Ingo Schommer
c0cc517635 Migrated behat features from framework 2013-10-08 00:23:44 +02:00
Ingo Schommer
0eb56f9650 Merge remote-tracking branch 'origin/3.1' 2013-10-07 16:19:55 +02:00
Ingo Schommer
107e4b2713 Merge remote-tracking branch 'origin/tmp-3.1.0' into 3.1 2013-10-07 15:19:18 +02:00
Ingo Schommer
aa44e710d0 Updated translations 2013-10-07 14:28:12 +02:00
Ingo Schommer
413e45881b Updated translations 2013-10-07 01:18:15 +02:00
Ingo Schommer
6098457467 Updated master translation file 2013-10-06 23:25:58 +02:00
Ingo Schommer
d2ba127e41 Merge branch 'refs/heads/3.1.0' into 3.1
Conflicts:
	lang/ar.yml
2013-10-06 20:06:55 +02:00
Ingo Schommer
7bab37cde3 Updated translations 2013-10-06 19:40:16 +02:00
Ingo Schommer
1a40994527 Merge remote-tracking branch 'origin/3.1'
Conflicts:
	code/controllers/ReportAdmin.php
	code/reports/Report.php
2013-10-06 19:07:52 +02:00
Ingo Schommer
2cb05428ff Merge branch 'refs/heads/3.1.0' into 3.1 2013-10-06 19:06:36 +02:00
Ingo Schommer
e836bbb907 Renamed "ja_JP" locale to "ja"
Better compat with transifex with generic locale
2013-10-06 19:06:21 +02:00
Ingo Schommer
648c2072e8 updated translations 2013-10-04 12:38:27 +02:00
Loz Calver
66bfff4d15 FIX Don't validate pages when restoring or reverting (fixes #2449)
Use new method
2013-10-03 16:54:38 +01:00
Ingo Schommer
0aae86b467 Merge pull request #862 from sheadawson/861-hiddenhints
BUGFIX check if hints are defined for given pagetype before using.
2013-10-03 01:36:05 -07:00
Shea Dawson
0d2d293c02 BUGFIX check if hints are defined for given pagetype before using. Fixes #861 2013-10-03 14:20:54 +13:00
Ingo Schommer
0437c0597d More resilient Behat checks for "page not found"
Wrapping in a step to capture cases where the ErrorPage defaults
haven't been generated, and the default ModelAsController
message shows which is slightly different wording.
2013-10-02 17:12:43 +02:00
Loz Calver
595a0375e7 Stop MenuTitle updating tree on change
If the MenuTitle is changed and the tree updates, not saving the
changes to the page leaves the tree with the new title instead of the
old, correct one (until a refresh). This also seems counter-intuitive
anyway - suggesting to users that their updated MenuTitle has been
saved before it actually has.
2013-10-02 12:53:03 +02:00
Ingo Schommer
26b086c3f7 Escape pl_PL.js (fixes #859) 2013-10-02 12:24:23 +02:00
Ingo Schommer
0c51d38841 Merge remote-tracking branch 'origin/3.1.0' into 3.1 2013-10-02 12:21:55 +02:00
Ingo Schommer
2a4191d449 Merge remote-tracking branch 'origin/3.0' into 3.1 2013-10-02 12:21:50 +02:00
Ingo Schommer
92e0c410b8 Fixed report link escaping 2013-10-02 12:19:23 +02:00
Ingo Schommer
52ab9e570a Fixed report link escaping 2013-10-02 12:01:34 +02:00