?
avatar Quy
Quy
7 Apr 2017

Steps to reproduce the issue

Install demo.
Go to Components > Banners > Clients.
Edit a client.

banner-clients

PHP Notice:  Undefined variable: canDo in C:\xampp\htdocs\joomla-cms-staging\administrator\templates\hathor\html\com_banners\client\edit.php on line 42

PHP Fatal error:  Call to a member function get() on null in C:\xampp\htdocs\joomla-cms-staging\administrator\templates\hathor\html\com_banners\client\edit.php on line 42
avatar Quy Quy - open - 7 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
Category com_banners Templates (admin)
avatar AlexRed
AlexRed - comment - 7 Apr 2017

I can confirm the problem on Joomla! 3.7.0-rc1 (nightly Build)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15147.

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
Status New Confirmed
avatar joomdonation
joomdonation - comment - 7 Apr 2017

Change this line https://github.com/joomla/joomla-cms/blob/staging/administrator/templates/hathor/html/com_banners/client/edit.php#L42 of code to the code below should solve the issue

<?php if ($this->canDo->get('core.edit.state')) : ?>
avatar Quy Quy - close - 8 Apr 2017
avatar Quy
Quy - comment - 8 Apr 2017

PR #15168

avatar Quy Quy - change - 8 Apr 2017
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-04-08 04:40:16
Closed_By Quy

Add a Comment

Login with GitHub to post a comment