User tests: Successful: Unsuccessful:
Improve the cache use in BannersModelBanner::getItem()
and remove a duplicated query.
$db->execute()
and $db->loadObject()
resulting in two queries, removes the $db->execute()
call.RuntimeException
objects and calling JError::raiseError()
which results in the error page being displayed. So there's really no point in trying to handle other errors here, let those bubble up the stack and hit the global handler which does the same if nothing else catches it (if a caller wanted to they could now have some sort of graceful fallback for other error conditions versus the model directly triggering the error page with no option of doing anything else; models are really a bad place to be calling JError
at all).A banner should still be read and used correctly when loaded through this model method.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End com_banners |
I have tested this item
Same error here, after click on banner I received:
1054 Unknown column 'a.clickurl' in 'field list'
Labels |
Added:
?
|
I have tested this item
Works OK now, thanks.
I have tested this item
RTC as 2 successfully Tests?
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-02-22 17:03:09 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
|
I have tested this item? unsuccessfully on 421dfa6
Received error below after applying the patch:
1054 Unknown column 'a.clickurl' in 'field list'
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14138.