From ec5f4721392a9f62dcd5319d7b4cb9a7d891ec42 Mon Sep 17 00:00:00 2001 From: Mateusz Uzdowski Date: Mon, 15 Feb 2010 00:56:21 +0000 Subject: [PATCH] BUGFIX: the ID should be that of untranslated child (it's the middle segment that's from translated version, not the last one) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98946 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/model/TranslatableTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model/TranslatableTest.php b/tests/model/TranslatableTest.php index 7ff4509eb..2858a59dc 100755 --- a/tests/model/TranslatableTest.php +++ b/tests/model/TranslatableTest.php @@ -875,7 +875,7 @@ class TranslatableTest extends FunctionalTest { ); $this->assertEquals ( - $childTranslation->ID, + $child->ID, SiteTree::get_by_link($parentTranslation->Link($child->URLSegment))->ID, 'Links can be made up of multiple languages' );