CiviCRM
  1. CiviCRM
  2. CRM-8716

Define content type for activity details to allow for intelligent rendering of data

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.5, 4.0.5
    • Fix Version/s: 4.4.0
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Is MIH?:
      No
    • Code Sprint:
      No

      Description

      Currently we store different formats of data in the activity details column (text, html). We are also planning on storing json-encoded data for the 4.1 release. Pages which display this data need an easy way to determine the content type in order to display it in a readable manner. Use internet media types as the option values ("text/plain", "text/html", "application/json" are the options we'll use for now).

      1. New column for civicrm_activity
      * content_type VARCHAR

      2. Upgrade
      * insert new column
      * update existing activity records and assign either "text/plain" or "text/html" depending on whether HTML tags are present in the data

      3. Send Email / CiviMail
      * Assign appropriate content_type to inserted activities

      4. Change case custom data - insert activity (http://issues.civicrm.org/jira/browse/CRM-8508)
      * Assign content_type = "application/json"

      5. View Activity
      * Surround 'Details' display with <pre> </pre> tags if content_type is NOT text/html.

        Issue Links

          Activity

          David Greenberg created issue -
          David Greenberg made changes -
          Field Original Value New Value
          Link This issue suplements CRM-8508 [ CRM-8508 ]
          Donald A. Lobo made changes -
          Fix Version/s 4.2 [ 10680 ]
          Fix Version/s 4.1 [ 10630 ]
          Kurund Jalmi made changes -
          Fix Version/s 4.3 [ 10770 ]
          Fix Version/s 4.2 [ 10680 ]
          Donald A. Lobo made changes -
          Fix Version/s 4.4 [ 10990 ]
          Fix Version/s 4.3 [ 10770 ]
          Hide
          Donald A. Lobo added a comment -

          Closing issues in batch on 4/16/13 since these issues have not been worked on in a long long time
          Show
          Donald A. Lobo added a comment - Closing issues in batch on 4/16/13 since these issues have not been worked on in a long long time
          Donald A. Lobo made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]

            People

            • Assignee:
              Deepak Srivastava
              Reporter:
              David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development