joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.73k stars 3.64k forks source link

Regression: Lost many Contact Display Options #18423

Closed AlexRed closed 2 years ago

AlexRed commented 6 years ago

Steps to reproduce the issue

Create a new menu item: Contacts » Single Contact
Try to disable in the Contact Display Options the Name or Street Address or Postal/ZIP Code ecc..
These parameters are no longer available

Expected result

I can enable/disable in the Contact Display Options the Name or Street Address or Postal/ZIP Code

Actual result

I can't enable/disable in the Contact Display Options the Name or Street Address or Postal/ZIP Code

System information (as much as possible)

dysokay-381

display-375

Additional comments

ok in Joomla 3.7.5 No in Joomla 3.8.0 and Joomla 3.8.1 and Joomla 3.8.2 Dev.

brianteeman commented 6 years ago

it looks like showon is not working for a global option. it works correctly is changed from global to a local setting

ghost commented 6 years ago

Issue confirmed.

System information

3.8.2-dev Multilanguage Site macOS Sierra, 10.12.6 Firefox 56 (64-bit)

MAMP 4.1.1

infograf768 commented 6 years ago

Concretely, it will only work for single contact menu item or when editing a contact IF the global settings Contact Information is set to Hide. In that case, switching to Show in the menu item or the contact itself will work as intended and display the fields.

ghost commented 6 years ago

True, @infograf768. So the Issue is that Global Setting "Contact Information: Show" isn't respected in single Contact and Single Contact-Menu.

infograf768 commented 6 years ago

The problem is similar for articles. Global Options display Linked Titles if Show Title is set to SHOW.

The showon is missing in article xml (should be added btw), but if I add a showon to obtain

            <field
                name="link_titles"
                type="list"
                label="JGLOBAL_LINKED_TITLES_LABEL"
                description="JGLOBAL_LINKED_TITLES_DESC"
                class="chzn-color"
                showon="show_title:1"
                useglobal="true"
                >
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>

When editing an article Show Title would display Use Global (Show) and Linked Titles field will not display until Show Title is set to Show.

Therefore the issue is not specific to com_contacts.

irbian commented 6 years ago

Regarding this I don´t know if related but

I had "sliders" as global configuration and "plain" as contact configuration. The contact form appeared as "sliders"

ghost commented 6 years ago

@irbian can you please open a new Issue?

irbian commented 6 years ago

Sure

jwaisner commented 4 years ago

@AlexRed Is this issue still existent in latest J3?

brianteeman commented 2 years ago

4 and half years later I think that can be closed