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

Custom data display builder uses the same logic to build both view and form dates for tab-displayed custom groups

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      CRM_Core_BAO_CustomField::addQuickFormElement() uses the same logic to build the display of the Select Date fields, no matter whether they are for viewing or for editing.

      This is a bug, as the order of the fields should differ; when the field is being edited, the order should be the one specified in $config->dateformatQfDate (or $config->dateformatQfDatetime), while when viewing, the order should be the one specified in $config->dateformatFull (or $config->dateformatDatetime).

      Note that this affects only the display of fields of custom groups that have their own tab; for inline custom groups we manage to display the dates properly.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              shot Piotr Szotkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: