? Success

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
29 May 2015

See
#7056

When editing an existing module, the fields are set back to Null.
When using filters and the module is new the fields are filled by the filters settings but, once the module is saved once, go back to null.

Checking for an existing id was missing in #6977

avatar infograf768 infograf768 - open - 29 May 2015
avatar infograf768 infograf768 - change - 29 May 2015
Status New Pending
Easy No Yes
avatar infograf768 infograf768 - change - 29 May 2015
Rel_Number 0 7056
Relation Type Pull Request for
avatar infograf768 infograf768 - change - 29 May 2015
Rel_Number 7056 0
Relation Type Pull Request for
avatar infograf768 infograf768 - change - 29 May 2015
Category Administration
avatar sovainfo
sovainfo - comment - 29 May 2015

@test ok
While posting discovered you beat me to it.
Tested creating and modifying a module both in empty and filtered list. All tests passed.


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

avatar sovainfo sovainfo - test_item - 29 May 2015 - Tested successfully
avatar Bakual
Bakual - comment - 29 May 2015

Just wondering if a boolean check wouldn't be enough. So instead of
if ($data->id == null) use if (!$data->id).
It would also catch cases where the ID would be 0 or false, which is less strict than == null but serves the same purpose.

edit: It's actually doing exactly the same thing, due to the "loose" compare function (==). It will return true also for 0, false or an empty string. So there is no point in checking if it equals null, just use the boolean check (or !empty() if you prefer that).

avatar joomla-cms-bot joomla-cms-bot - change - 29 May 2015
Labels Added: ?
avatar infograf768
infograf768 - comment - 29 May 2015

Used boolean. I guess it is RTC

avatar zero-24 zero-24 - change - 29 May 2015
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 29 May 2015
Labels Added: ?
avatar Bakual
Bakual - comment - 29 May 2015

Looks fine, yes. Thanks!

avatar wilsonge wilsonge - change - 29 May 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-05-29 18:38:19
Closed_By wilsonge
avatar wilsonge wilsonge - close - 29 May 2015
avatar zero-24 zero-24 - close - 29 May 2015
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment