User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Added getField method to FieldsHelper.php to get a single field instead of every field of an item.
If you want to get a single field of an item, you have to foreach trough every field, until you found the correct field.
You can now just use this function.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_fields |
Labels |
Added:
PR-6.0-dev
|
Labels |
Added:
Feature
|
Is there a reason why you do not do a $this->getFields(...) and then return the field with Id if it exists?
That would save a lot of (duplicated) code in the new function?
so something like this: