1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

Element Dropdown

Discussion in 'Community' started by clawcorp, Sep 6, 2021.

  1. clawcorp

    clawcorp New Member

    Level: Community
    After updating from 3.9.2 to 3.10, I noted that dropdown lists were no longer displaying the label values correctly. This appears related to a change in list.php @ addLabel where the method call to getFullName changed parameters from (false,true(,ignored parameter)) to (true,true). This change forced labels to be translated to value and later on in elementlist->renderListData as the wrong key was being looked up, which I believe then defaults to the list's default key/value.

    My current fix is to go back to 3.9.2:

    $col = $elementModel->getFullName(false, true);

    to reverse March 26, 2021 commit (commit: 3180d58ef2778590fcac2d9990f8f8309ad8128d)

    Any suggestions otherwise appreciated. Thank you.
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    I can't replicate.
    What are your exact element setting?
    What is exactly showing/not showing where?
  3. clawcorp

    clawcorp New Member

    Level: Community
    I created a new list/form with one element (aside from default date_time and id). For the drop down element, I believe all the settings are default except values defined as follows:

    Value -> Label:
    1 -> Default (Default sub option)
    2 -> 1
    3 -> 3

    Only this dropdown is "Show in List" selected. So, if go to List and create a new row and select "1" (which should have a value of 2 in the database, which it does) when I return to the listing I see "Default" If I edit the row, I see the correct "1" label.

    Hope that helps. Thanks.
  4. troester

    troester Well-Known Member Staff Member

    Level: Community
    ok, replicatable.
    But only in the backend and only if you have a dropdown label = a value of an other dropdown entry ("1" in your example)
    Can you confirm this behaviour?
  5. clawcorp

    clawcorp New Member

    Level: Community
    Sorry for the delay - I've put on my to do list to verify behavior. Should have an answer by this weekend.

Share This Page