1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

List "Related Data" showing 'Add' link for list when zero rows

Discussion in 'Standard Support' started by jcc, Aug 30, 2012.

Thread Status:
Not open for further replies.
  1. jcc

    jcc Member

    Level: Community
    J! 2.5.6 and today's github Fabrik-fabrik-3.0.6.1-64-g6118aa8 + a timestamp.php code change from http://fabrikar.com/forums/showthread.php?p=150173#post150173.

    This is regarding the same list as described in http://fabrikar.com/forums/showthread.php?t=27898.

    In the list I have 3 related data links enabled as shown in the attached image; the first 2 are for lists, and last one for a form.

    As the image shows, the 'Payment History' link (to a list) is showing 'Add' when there are no records to view rather than the lock like in the 'Audit History' links. I would definitely prefer the lock as the 'Add' is confusing when a list is expected.
     

    Attached Files:

  2. rob

    rob Administrator Staff Member

    Level: Community
    the lock or add link depends on whether the logged in user has access to a records to the related data list. If they do then the add form is shown, if not then the lock icon is shown.
    We don't have another way of altering that. Perhaps the simplest would be to hide the add link with some css

    -Rob
     
  3. jcc

    jcc Member

    Level: Community
    I would like to suggest that having a related data link for a list take you to an add form is non-intuitive (especially when you are also showing the Add form link also.) I would expect it to take you to an empty list (or just not provide a link at all.)

    That said, I think that handling it within the css a reasonable answer. So, in a sense, I'll be implementing what 'I would expect'.

    Thanks Rob.
     
  4. jcc

    jcc Member

    Level: Community
    FYI - I decided to take a slightly different tack on the solution to this issue. Instead of hiding the 'Add' in the list column, I decided to kill two birds (this issue and the ordering issue described in http://fabrikar.com/forums/showpost.php?p=150033&postcount=16) with one stone.

    I disabled the Related Data List link for 'Payment History', then I created a copy of the List for 'Payment History', set it so only Super User can add records, and enable it for the Related Data List link. It reorders the links in the list to be the way I want them and it gets rid of the 'Add' when there is no history.
     
    1 person likes this.
Thread Status:
Not open for further replies.

Share This Page