?
avatar brianteeman
brianteeman
23 Oct 2019

On the front end of the site the wrong icon is being displayed for the edit article link. It should be edit but its getting eye-slash

$icon = $article->state ? 'edit' : 'eye-slash';
if (strtotime($article->publish_up) > strtotime(Factory::getDate())
|| ((strtotime($article->publish_down) < strtotime(Factory::getDate())) && $article->publish_down != Factory::getDbo()->getNullDate()))
{
$icon = 'eye-slash';
}

I can't get my head around all the conditionals here and it looks like its related to the date changes

avatar brianteeman brianteeman - open - 23 Oct 2019
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Oct 2019
avatar richard67
richard67 - comment - 23 Oct 2019

@brianteeman Please test PR #26756 . It solves this issue.

avatar richard67
richard67 - comment - 23 Oct 2019

@brianteeman I see, is already RTC, no need to test. But it solves the issue, definitely.

avatar brianteeman brianteeman - change - 23 Oct 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-10-23 18:03:42
Closed_By brianteeman
avatar brianteeman brianteeman - close - 23 Oct 2019

Add a Comment

Login with GitHub to post a comment