? ? Pending

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
29 Jan 2018

So use the correct one.

Pull Request for Issue # .

Summary of Changes

Us the table class' own db object to access the database. Because (and, yes, this is highly unusual) you could be working with some other database. After all, is that not the whole reason that that Table constructor takes a dbo as one of its arguments?

Testing Instructions

There's no new feature here and, in almost all cases, the affected function is 'store'. So just save a banner, contact, filter, newsfeed, note, and menu. All should work normally.

Expected result

Normal

Actual result

Normal

Documentation Changes Required

No

avatar okonomiyaki3000 okonomiyaki3000 - open - 29 Jan 2018
avatar okonomiyaki3000 okonomiyaki3000 - change - 29 Jan 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Jan 2018
Category Administration com_banners com_contact com_finder com_newsfeeds com_users Libraries
avatar joomdonation
joomdonation - comment - 29 Jan 2018

Looks good from code review. I just unsure about what's our preferred code style (directly property access or using getter method)

array('dbo' => $this->_db)

Or

array('dbo' => $this->getDbo())
avatar mbabker
mbabker - comment - 29 Jan 2018

There isn't a code style rule in place for that. Personal preference is to use a getter if available though.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 29 Jan 2018

@joomdonation The existing code was a bit inconsistent on that point so I did my best to maintain that inconsistency.

avatar joomdonation
joomdonation - comment - 11 Feb 2018

I have tested this item successfully on ed02424

Saving items (all effected by this PR like contacts, banners, clients...) still work as expected


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

avatar joomdonation joomdonation - test_item - 11 Feb 2018 - Tested successfully
avatar alikon alikon - test_item - 28 Feb 2018 - Tested successfully
avatar alikon
alikon - comment - 28 Feb 2018

I have tested this item successfully on ed02424


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

avatar Quy Quy - change - 28 Feb 2018
Status Pending Ready to Commit
avatar joomla-cms-bot joomla-cms-bot - edited - 28 Feb 2018
avatar Quy
Quy - comment - 28 Feb 2018

RTC


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

avatar mbabker mbabker - change - 17 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-17 15:53:52
Closed_By mbabker
Labels Added: ? ?
avatar mbabker mbabker - close - 17 Mar 2018
avatar mbabker mbabker - merge - 17 Mar 2018

Add a Comment

Login with GitHub to post a comment