From 0f29fbfc801d70b2cf40e42a38e30f7a1b6be4b3 Mon Sep 17 00:00:00 2001 From: Andy Gaskell Date: Wed, 30 Oct 2019 09:40:31 +0000 Subject: [PATCH] setting the $str_before var as blank This tweak is needed in some cases to avoid the content being repeatedly displayed --- admin/extensions/content_fieldsattachment/fieldsattachment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/extensions/content_fieldsattachment/fieldsattachment.php b/admin/extensions/content_fieldsattachment/fieldsattachment.php index 296001c..537d8c1 100644 --- a/admin/extensions/content_fieldsattachment/fieldsattachment.php +++ b/admin/extensions/content_fieldsattachment/fieldsattachment.php @@ -177,6 +177,8 @@ private function getAll( $article ) if($eltitle) $article->text .= '

'.$field->titlegroup.'

'; $article->text =$str_before.$article->text.$str; $str =''; + $str_before =''; + } $idgroup = $fields[$cont+1]->idgroup; }else{