filtered articles index if translated or not in current language
This commit is contained in:
@@ -272,8 +272,8 @@ class CorpusController extends ControllerBase {
|
||||
if($sid != 'corpus_documents_publie') continue;
|
||||
|
||||
// TODO: check if article is translated
|
||||
if (!$node->hasTranslation($current_langcode)
|
||||
|| $node->getTranslation($current_langcode)->body->isEmpty()) continue;
|
||||
if ($node->hasTranslation($current_langcode)
|
||||
&& $node->getTranslation($current_langcode)->body->isEmpty()) continue;
|
||||
|
||||
$this->articles_nodes[] = $node;
|
||||
// record an array of nids for corpus map filtering
|
||||
|
||||
Reference in New Issue
Block a user