Ajax Call: Problem with filter in Article & Articles Model in Module Context

I currently have a problem with an ajax call in my new module. the filters are not used. Here is an extract of the relevant lines: $articleid = $data_decoded->articleid; // Get an instance of the generic articles model require_once(JPATH_ADMINISTRATOR . ‘/components/com_content/models/articles.php’); $model = JModelLegacy::getInstance(‘Articles’, ‘ContentModel’, array(‘ignore_request’ => true)); $model->setState(‘filter.article_id’, $articleid); return $model->getItems(); $articleid contains the…

Ajax Call: Problem with filter in Article & Articles Model in Module Context

I currently have a problem with an ajax call in my new module. the filters are not used. Here is an extract of the relevant lines: $articleid = $data_decoded->articleid; // Get an instance of the generic articles model require_once(JPATH_ADMINISTRATOR . ‘/components/com_content/models/articles.php’); $model = JModelLegacy::getInstance(‘Articles’, ‘ContentModel’, array(‘ignore_request’ => true)); $model->setState(‘filter.article_id’, $articleid); return $model->getItems(); $articleid contains the…

Ajax Call set article id filter for generic articles model

I currently have a problem with an ajax call in my new module. the article id filter is not used. Other filters like published work as i see it. Here is an extract of the relevant lines: $articleid = $data_decoded->articleid; // Get an instance of the generic articles model require_once(JPATH_ADMINISTRATOR . ‘/components/com_content/models/articles.php’); $model = JModelLegacy::getInstance(‘Articles’,…