Display a contact on frontend after making sure that display articles is set to show.
The user linked to that contact should have at least created one article.
Results:
31-Jan-2015 15:24:34 UTC] PHP Notice: Undefined property: stdClass::$catid in /Applications/MAMP/htdocs/trunkgitnew/components/com_contact/views/contact/tmpl/default_articles.php on line 20
[31-Jan-2015 15:24:34 UTC] PHP Notice: Undefined property: stdClass::$language in /Applications/MAMP/htdocs/trunkgitnew/components/com_contact/views/contact/tmpl/default_articles.php on line 20
The line concerned is
<?php echo JHtml::_('link', JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
This apparently happens because of this PR
#5276
I guess it needs a similar code change introduced in pagenavigation.php in
Hackwar@0d3ef7c
i.e. in the contact model getContactQuery method
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-01 16:24:39 |
Changing $article->catid to $article->catslug solves the $catid Notice, but I could not find any way to correct the issue with $article->language)