Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[com_fields] Don't default to all user fields to show #14407

Merged
merged 2 commits into from
Mar 30, 2017

Conversation

laoneo
Copy link
Member

@laoneo laoneo commented Mar 7, 2017

Pull Request for Issue #14392.

Summary of Changes

Don't default to all user groups to show on contact fields. Like it is now it is not possible to prevent to show the user custom fields on the contact details. This pr removes the hardcoded default value "All".

Testing Instructions

Clear the "Show User Custom Fields" option in the contact options.
image

Expected result

Keep empty.

Actual result

Defaults the value to "All".

Documentation Changes Required

@laoneo laoneo changed the title Don't default to all user fields to show [com_fields] Don't default to all user fields to show Mar 7, 2017
@gwsdesk
Copy link

gwsdesk commented Mar 8, 2017

I have tested this item 🔴 unsuccessfully on d140e0f

I have tested this unsuccessfully See https://www.screencast.com/t/dDPWttlRH


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

@gwsdesk
Copy link

gwsdesk commented Mar 8, 2017

See the reason and what is happening https://www.screencast.com/t/dDPWttlRH


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

@laoneo
Copy link
Member Author

laoneo commented Mar 8, 2017

Found a browser with flash. Do you mean the cut text which is wrong? There is already an issue open #13594.

@gwsdesk
Copy link

gwsdesk commented Mar 8, 2017

Not sure @laoneo
If I empty the field and save I get the broken cut text. If I load the options initially the "All"is given in the field entry. Changing it to empty and successively saving and reloading gives that behavior. So not sure actually what should be shown after empty and save.....should it show "all" or empty (with correct text)

@laoneo
Copy link
Member Author

laoneo commented Mar 8, 2017

It should be an empty select box as in your screencast. The broken text is a "bug" in the template as discussed in #13594. So I guess we should handle the cut text problem in the issue. Is the rest working as expected?

@gwsdesk
Copy link

gwsdesk commented Mar 8, 2017

Correct works as expected for the prevention so will change the test result Thanks Allon

@gwsdesk
Copy link

gwsdesk commented Mar 8, 2017

I have tested this item ✅ successfully on d140e0f


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

@coolcat-creations
Copy link
Contributor

I have tested this item 🔴 unsuccessfully on d140e0f

The userfields are still show, although nothing is selected


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

@laoneo
Copy link
Member Author

laoneo commented Mar 8, 2017

Is it empty in the menu configuration and the global contact options?

@coolcat-creations
Copy link
Contributor

Yes both are empty, also created a completely new one as the existing failed, but also no luck

@brianteeman
Copy link
Contributor

I have tested this item 🔴 unsuccessfully on d140e0f

I created a user field group called testgroup
I create a user text field called textfield
I created a contsct and linked it to a user
I created a menu item to display a single contact
I checked that the option field did not have a category set
The contact is displayed on the front end with both the group and its fields

Just a guess but instead of having it blank would it not be better to have a NONE setting


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

@laoneo
Copy link
Member Author

laoneo commented Mar 27, 2017

The important point is that the setting in the global contact options is not defaulted to all. So make sure that you can save it with no value selected and it stay like that:
image

As soon as I select a group or All, then the fields do show up, but when none is selected, then no fields should be shown.

@brianteeman
Copy link
Contributor

As stated above in my report it is not enough for the options page to show no value. it actually has to work in that way which it doesnt

@laoneo
Copy link
Member Author

laoneo commented Mar 27, 2017

I'v just tested it with your instructions and when the field is empty, then it shows no fields on the contact page. So for me it is working as expected. I'v just tested it with the latest staging.

@brianteeman
Copy link
Contributor

ok let me test again with latest staging

@brianteeman
Copy link
Contributor

Ignore me I was being an idiot. All good

@brianteeman brianteeman reopened this Mar 27, 2017
@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on 691b8cf


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

@laoneo
Copy link
Member Author

laoneo commented Mar 27, 2017

Glad to hear it is working as expected.

@laoneo
Copy link
Member Author

laoneo commented Mar 28, 2017

@gwsdesk can you test it again as it doesn't count your test because of the upstream merge. Thanks.

@ghost
Copy link

ghost commented Mar 30, 2017

I have tested this item ✅ successfully on 691b8cf


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

@ghost
Copy link

ghost commented Mar 30, 2017

RTC after two successful testes.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 30, 2017
@jeckodevelopment jeckodevelopment added this to the Joomla 3.7.0 milestone Mar 30, 2017
@rdeutz rdeutz merged commit 529e4fc into joomla:staging Mar 30, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 30, 2017
@laoneo laoneo deleted the cf/contact-no-default-users branch March 31, 2017 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants