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

CRM_Case_BAO_Case::getCaseActivity is matching on the label instead of the name when deciding what class to output

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: CiviCase
    • Labels:
      None

      Description

      These lines:

      if ( !empty($dao->priority) ) {
      if ( $activityPriority[$dao->priority] == 'Urgent' )

      { $values[$dao->id]['class'] = $values[$dao->id]['class']."priority-urgent "; }

      else if ( $activityPriority[$dao->priority] == 'Low' )

      { $values[$dao->id]['class'] = $values[$dao->id]['class']."priority-low "; }


      }

      if( $values[$dao->id]['status'] == 'Scheduled' )

      { $values[$dao->id]['class'] = $values[$dao->id]['class']."status-scheduled"; }

      else

      { $values[$dao->id]['class'] = $values[$dao->id]['class']."status-completed"; }

      If I change the label column in the option_values table it no longer outputs the correct class.

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              demeritcowboy Dave D
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: