From e5b95f9bb224894117f442ef147183cba32305a1 Mon Sep 17 00:00:00 2001 From: Gus King Date: Mon, 14 Oct 2013 01:56:07 -0400 Subject: [PATCH] Added check to see if the DataObject actually has translation before iterating over. --- code/model/Translatable.php | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 124f52d..c1f754a 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1069,22 +1069,24 @@ class Translatable extends DataExtension implements PermissionProvider { _t('Translatable.EXISTING', 'Existing translations'), 3 )); - if(!$tab->fieldByName('existingtrans')) { + if (!$tab->fieldByName('existingtrans')) { $existingTransHTML = ''; - $tab->push(new LiteralField('existingtrans',$existingTransHTML)); + $existingTransHTML .= ''; + $tab->push(new LiteralField('existingtrans', $existingTransHTML)); } } }