NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
22 Aug 2020

Pull Request for Issues #30433 & #30431

Summary of Changes

Added the possibility to display fieldsets description for children (and parent when there are children)

Testing Instructions

Structure of a xml with children fieldsets

<fieldset name="filtering" label="MOD_ARTICLES_CATEGORY_FIELD_GROUP_FILTERING_LABEL" description="Top most description">

<fieldset name="filtering_child1" label="Child 1" description="Child description 1">
[some fields]
</fieldset>
<fieldset name="filtering_child2" label="Child 2" description="Child description 2">
[the remaining fields]
</fieldset>

</fieldset>

For example, replace the file modules/mod_articles_category/mod_articles_category.xml where I have made such a structure.
with this one (unzip first)
mod_articles_category.xml.zip

Test, then patch and run NPM as we have a small scss change.

Actual result BEFORE applying this Pull Request

Screen Shot 2020-08-22 at 09 38 41

Expected result AFTER applying this Pull Request

Screen Shot 2020-08-22 at 09 36 52

@obuisard
Please test and add your test result on https://issues.joomla.org/tracker/joomla-cms/30450

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar infograf768 infograf768 - open - 22 Aug 2020
avatar infograf768 infograf768 - change - 22 Aug 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2020
Category Administration Templates (admin) NPM Change Layout
avatar infograf768 infograf768 - change - 22 Aug 2020
The description was changed
avatar infograf768 infograf768 - edited - 22 Aug 2020
avatar obuisard obuisard - test_item - 22 Aug 2020 - Tested successfully
avatar obuisard
obuisard - comment - 22 Aug 2020

I have tested this item successfully on 151b0ac

Perfect, thank you!


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

avatar obuisard
obuisard - comment - 22 Aug 2020

I have tested this item successfully on 151b0ac

Perfect, thank you!


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

avatar infograf768
infograf768 - comment - 23 Aug 2020

@Bakual
See #3048

EDIT: in fact that code is much much older...

Any reason to use
if (isset($fieldSet->description) && trim($fieldSet->description))
instead of @Quy proposal above
if (!empty($fieldSet->description))

avatar infograf768 infograf768 - change - 23 Aug 2020
Labels Added: NPM Resource Changed ?
avatar Bakual
Bakual - comment - 23 Aug 2020

I haven't changed the code itself in that old PR, I just moved it to a different place. So I wasn't thinking about why the trim is there.

There would be a small difference between the code, that is when the description holds only a whitespace. The first line wouldn't show it (because trim removes the space), the second line would show it.

Personally, I would go with !empty, I think we can live with the difference in behavior.

avatar infograf768
infograf768 - comment - 23 Aug 2020

@Quy @obuisard @richard67
Modifs done. Can be tested again.

avatar Quy Quy - test_item - 23 Aug 2020 - Tested successfully
avatar Quy
Quy - comment - 23 Aug 2020

I have tested this item successfully on 83c9d5b


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

avatar obuisard obuisard - test_item - 23 Aug 2020 - Tested successfully
avatar obuisard
obuisard - comment - 23 Aug 2020

I have tested this item successfully on 83c9d5b


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

avatar infograf768 infograf768 - change - 23 Aug 2020
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 23 Aug 2020

Back to RTC

Appveyor failure is unrelated.


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

avatar infograf768 infograf768 - change - 24 Aug 2020
Labels Added: ?
avatar infograf768
infograf768 - comment - 24 Aug 2020

Took off an extraneous new line at the end of _alerts.scss to force rebuild to solve appveyor failure to run.
No change for tests and RTC

avatar rdeutz rdeutz - close - 27 Aug 2020
avatar rdeutz rdeutz - merge - 27 Aug 2020
avatar rdeutz rdeutz - change - 27 Aug 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-08-27 07:12:45
Closed_By rdeutz

Add a Comment

Login with GitHub to post a comment