Failure

User tests: Successful: Unsuccessful:

avatar mahagr
mahagr
13 Jun 2013

Current version of JTable::load(null) returns true if table key is either null or 0. This contradicts the method documentation which says that false is returned if the row wasn't found (from the database).

// Initialize any table instance (with id as primary key) and run:
$table->id = 0;
$success = $table->load();
var_dump($success); // true (should be false)
$table->id = 9999999;
$success = $table->load();
var_dump($success); // false
avatar mahagr mahagr - open - 13 Jun 2013
avatar brianteeman
brianteeman - comment - 13 Oct 2013

Thanks for your contribution - At this time we are only using github as the place to submit code fixes, the actual reporting of issues and testing fixes is still taking place on Joomlacode.

As it has been some time since you opened this issue can you please confirm that it is still valid with the current Master or Joomla 3.2 beta. If it is no longer valid then please can you close this issue. Otherwise please can you:

1) Open an item on the Joomlacode tracker in the appropriate area.

CMS Bug Reports: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103

CMS Feature Requests: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8549

2) After submitting the item to the Joomlacode tracker, add a link to the Joomlacode tracker item here and make sure that you add a link to this GitHub issue or pull request on the joomlacode tracker item.

avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
Build .
avatar brianteeman brianteeman - change - 22 Sep 2014
Category Libraries
avatar wilsonge wilsonge - close - 22 Dec 2014
avatar wilsonge wilsonge - change - 22 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-22 20:17:59
avatar wilsonge
wilsonge - comment - 22 Dec 2014

Myself and @roland-d both code reviewed this and are merging. Thanks @mahagr and sorry for the excessive wait!

avatar smz
smz - comment - 24 Dec 2014

@wilsonge, @roland-d and @mahagr: This is causing a nasty regression: please see #5513

avatar wilsonge
wilsonge - comment - 24 Dec 2014

Reverted for now

Add a Comment

Login with GitHub to post a comment