? Pending

User tests: Successful: Unsuccessful:

avatar uglyeoin
uglyeoin
25 Jan 2017

private static $fieldsCache = null; was written twice, surely there is no need?

Pull Request for Issue # .

Summary of Changes

Removed a duplicated line.

Testing Instructions

It is to do with field cache. I'm not enough of a coder to know exactly what this does so someone else would be better off writing this description.

Documentation Changes Required

none

avatar uglyeoin uglyeoin - open - 25 Jan 2017
avatar uglyeoin uglyeoin - change - 25 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Jan 2017
Category Administration com_fields
avatar photodude
photodude - comment - 25 Jan 2017

The one is $fieldsCache the other is $fieldCache Note that the one you deleted is singular and the other is plural they are both needed.

What is needed here is a member var comment
See the coding standards on Class Property DocBlocks http://joomla.github.io/coding-standards/?coding-standards/chapters/docblocks.md

avatar photodude
photodude - comment - 25 Jan 2017

Also note that if this section of code had proper Unit testing your change would have failed the CI tests on submission

avatar alikon
alikon - comment - 25 Jan 2017

they are not the same variable $fieldsCache is different from $fieldCache

avatar uglyeoin
uglyeoin - comment - 25 Jan 2017

Oh yes, there's an additional S. I knew there had to be a reason for this, I'll shut this down if I can find out how

avatar uglyeoin uglyeoin - change - 25 Jan 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-01-25 18:27:26
Closed_By uglyeoin
Labels Added: ?
avatar uglyeoin uglyeoin - close - 25 Jan 2017
avatar chrisdavenport
chrisdavenport - comment - 25 Jan 2017

The use of the word "cache" is misleading. I would suggest renaming to "$fieldModel" and "$fieldsModel".

Add a Comment

Login with GitHub to post a comment