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;
|
if($sid != 'corpus_documents_publie') continue;
|
||||||
|
|
||||||
// TODO: check if article is translated
|
// TODO: check if article is translated
|
||||||
if (!$node->hasTranslation($current_langcode)
|
if ($node->hasTranslation($current_langcode)
|
||||||
|| $node->getTranslation($current_langcode)->body->isEmpty()) continue;
|
&& $node->getTranslation($current_langcode)->body->isEmpty()) continue;
|
||||||
|
|
||||||
$this->articles_nodes[] = $node;
|
$this->articles_nodes[] = $node;
|
||||||
// record an array of nids for corpus map filtering
|
// record an array of nids for corpus map filtering
|
||||||
|
|||||||
Reference in New Issue
Block a user