Damian Mooyman
9b2183167f
Merge branch '2.1' into 2.2
2016-05-19 13:55:29 +12:00
Ingo Schommer
d9cf71b91b
Consistently add Locale to test fixtures ( fixes #223 )
...
Technically this should be fixed by changing the logic
in Translatable::get_extra_config(), which modifies the 'defaults'
configuration on the objects it applies to. Since this is called
very early during the configuration bootstrap, it sets whatever
the current value of Translatable::get_default_locale() is there.
Any changes at a later time don't affect newly created objects,
even Translatable::reset() doesn't alter the initially configured 'defaults'.
2016-05-19 12:50:42 +12:00
Conrad
07bd3c58cb
Fixes #239 , cacheKeyComponent updates cache key when filtering is disabled
2016-04-04 15:10:24 +12:00
Florian Thoma
5deae7a8f9
BUGFIX support for dropdowns of has_one relations
2014-05-21 14:39:07 +10:00
Ingo Schommer
03311b4d00
Removed testLocalePersistsInAllPageTypes()
...
Doesn't respect custom business logic such as
validate() methods denying page creation to certain
users, or page creation on the root level.
The test doesn't add a whole lot of value,
since the baseline translation creation doesn't
really differ between page types.
2013-10-22 00:20:17 +02:00
Jeremy Thomerson
7534807137
Test case: class changes propagate to translations when published
2013-08-18 02:03:12 +00:00
Ingo Schommer
b898134b11
NEW Translatable.enforce_global_unique_urls config setting
...
See https://github.com/silverstripe/silverstripe-cms/pull/216
and https://github.com/silverstripe/silverstripe-cms/pull/772
for context
2013-08-03 13:01:39 +02:00
Jeremy Thomerson
a008f928c6
FIX: get_one_by_locale didn't work when filter disabled
2013-08-03 12:43:46 +02:00
Ingo Schommer
5109f80ed9
Merge branch 'pull-117'
2013-06-28 10:18:34 +02:00
Ingo Schommer
c551915745
Merge remote-tracking branch 'origin/1.0'
2013-06-28 10:12:58 +02:00
Jeremy Thomerson
403e6d21a3
FIX: TranslatableSearchFormTest used wrong param for getResults
2013-06-18 18:32:30 +00:00
Jeremy Thomerson
f75a5fd5e3
TEST: adds test for changing class name of default locale translation
...
Adds test case for silverstripe/silverstripe-translatable#97
2013-06-06 02:59:51 +00:00
Jeremy Thomerson
f4e5137392
FIX: make getTranslations work even when translation classes differ
...
Even though it is an edge-case, some sites may allow translation groups to be
composed of different classes. In that case, Translatable->getTranslations()
should still work.
Also, this commit adds a helper function for testing two array for equality
where you don't care about the order of the elements. This cleaned up a lot
of copy and paste boilerplate code that was sorting arrays to test.
2013-06-06 02:59:51 +00:00
Ingo Schommer
51cd0146df
Merge branch '1.0'
...
Conflicts:
.travis.yml
code/model/Translatable.php
2013-06-03 12:06:29 +02:00
Ingo Schommer
3551a94e67
Fixed quoting of test SQL
2013-06-03 12:05:22 +02:00
Jeremy Thomerson
cde0f57c43
FIX support disabled locale filter for delayed querying
...
Fixes silverstripe/silverstripe-translatable#113
2013-06-01 14:14:54 +00:00
Ingo Schommer
7f9dd3e17e
Simplified travis builds (using external script)
2013-03-29 09:18:44 +01:00
Ingo Schommer
fb15dae253
Simplified travis builds (using external script)
2013-03-29 09:16:56 +01:00
Ingo Schommer
06762814d6
More versatile travis script
2013-03-28 16:02:06 +01:00
Ingo Schommer
ec213efe76
More versatile travis script
2013-03-28 15:28:21 +01:00
Ingo Schommer
5c7682013c
Misc 3.1 compat changes
...
Removed nested_urls check, its the only supported mode now
2013-03-26 13:55:21 +01:00
Ingo Schommer
20c2e9a190
Fixed add_extension() and add_to_class() usage
2013-03-19 09:59:08 +01:00
Ingo Schommer
2f0a629df1
Fixed extraStatics usage
2013-03-19 09:44:15 +01:00
Simon Elvery
44f8180110
NEW Make it easier to show original values for custom fields.
2013-01-10 00:35:59 +01:00
Ingo Schommer
745b2bcc8e
Removed MetaTitle/MetaDescription fields from search form
...
They have been removed from core (master)
2012-10-02 23:09:29 +02:00
Ingo Schommer
c8863f6977
ENHANCEMENT Travis CI support
2012-10-02 22:50:44 +02:00
Ingo Schommer
51c7d9e2ef
Coding conventions fixes (mostly line length)
2012-10-02 22:34:16 +02:00
Damian Mooyman
91596197ee
FIXED: Issue where translation of siteconfigs would create additional objects.
...
ADDED: Test case assertion
FIXED: Coding convention
2012-09-07 17:08:49 +02:00
Damian Mooyman
ba62557aac
FIXED: Odd crash with error "Invalid CRT parameters detected" in test cases. Replaced with equivalent non-crashing code.
2012-09-07 17:08:48 +02:00
Damian Mooyman
a3b3ec8c4e
FIXED: Issue where $enable_siteconfig_generation flag was not being set correctly, causing failed test cases_
...
FIXED: Duplicate entries in test database
2012-09-07 17:08:48 +02:00
Damian Mooyman
9978765abc
UPDATED: Refactored Translation module specific code out of the SiteConfig
2012-09-07 17:08:48 +02:00
Ingo Schommer
610874755c
BUGFIX 3.0 compatibility: Query manipulation, CMS links, separation of settings fields, new place for language selector on tree
2012-05-15 23:04:57 +02:00
Ingo Schommer
515b02809d
MINOR Fixing TranslatableTest to work with new CMS preview feature in master (log out user to avoid redirection before checking URLs)
2011-07-09 15:47:10 +02:00
Ingo Schommer
edcb9ae582
BUGFIX Added Translatable->updateSettingsFields(), fixed related unit test
2011-05-02 08:30:40 +12:00
Ingo Schommer
7348ce7077
MINOR Subclassing from DataExtension instead of DataObjectDecorator
2011-05-01 22:29:20 +12:00
Ingo Schommer
e40b5f909b
MINOR Fixed @package
2011-03-23 10:15:23 +13:00
Ingo Schommer
2a3cc650dc
MINOR Initial commit, moved files from 'sapphire' and 'cms' modules
2011-03-22 22:18:48 +13:00