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

New Tag -- select should not have tagset tags

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When creating a new tag, the parent_id select box includes a list of all tags – including those that are children of tagsets. Tagsets are limited to two levels deep, and thus their children should not be available as parents.

      CRM/Admin/Form/Tags.php
      line 82, change to:
      $allTag = array ('' => '- ' . ts('select') . ' -') + CRM_Core_BAO_Tag::getTags( );

      this almost fixes it – it limits the list to only non-tagset tags. But it also excludes the tagsets themselves, which you could potentially want to add to.
      could use getTagSet() and append those values

      also – the main tag display only allows navigation three levels deep. but when viewing tags in the contact summary-edit page, you can view deeper levels. do we want to limit the parent options to two levels to avoid four-deep tags that have limited accessibility? (real fix would be to improve the tags tab)

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified