Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19806

CiviCase using two formlinks when it only needs one

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.14
    • Fix Version/s: 4.7.16
    • Component/s: CiviCase
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      When generating lists of cases (for example when searching cases) CiviCase calls CRM_Core_Action::formLink twice, once to make the actions that display when you search ("manage" and "delete") and once to make the list that is used for the "more" link.

      formLink will create a "more" link if more than 3 links are sent to it so one does not need to force a "more" however only 3 links are sent to it so with this pr it will show the third link ("Assign to Another Client") as an action with no "more" see image below:

      Aside from being unnecessary to call formLink twice without this pr one cannot use [hook_civicrm_links](https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_links) to remove the "more" button.

        Attachments

        1. findcases.png
          44 kB
          Alice Frumin
        2. findCaseswithpr.png
          64 kB
          Alice Frumin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alifrumin Alice Frumin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: