User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Reset filter.assigned_cat_ids because another call of FieldsHelper::getFields() with no second parameter will still use the previous filter.assigned_cat_ids state.
Basically if you make two subsequent calls, one with the $item parameters supplied and the other one without any parameter:
FieldsHelper::getFields('com_content.article', $item);
FieldsHelper::getFields('com_content.article');
The second call will always have filter.assigned_cat_ids prepopulated by the previous call, causing it to return an incorrect value.
defined('_JEXEC') or die;
:var_dump(FieldsHelper::getFields('com_content.article'));
You should be able to see an array of ALL article fields since that's what you've requested.
Either an empty array if the current article has no fields assigned or only current article's fields.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_fields |
Title |
|
Labels |
Added:
?
|
@OctavianC Sorry, ignore my previous comment. Is already done.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-01-16 11:18:21 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
?
|
Thanks
@OctavianC Could you use the "Update branch" button at the bottom of your PR? This will retrigger also appveyor tests. I'd like to see if they will pass this time. I think that they failed is not related to this PR, but if they pass this time we can be sure. Thanks in advance.