Jump to content


rordallas

Member Since 27 Oct 2016
Offline Last Active Dec 09 2018 07:45 AM
-----

Posts I've Made

In Topic: Is it possible to search contacts by a custom field?

04 December 2018 - 07:42 AM

Add the custom field to the All Contacts page via the Columns button. Then in that column, put whatever code you want to filter by in the top row.


In Topic: [Bug?] Unsubscribe not updating x2_contacts table

22 November 2018 - 07:34 AM

Thanks for the timely response.


In Topic: Actions Module "List View" - add "Complete + new action" button

06 September 2018 - 01:24 PM

As far as answering your PS:

1. Duplicate "path to x2crm\X2CRM\x2engine\protected\modules\actions\models\Actions.php" to "path to x2crm\X2CRM\x2engine\custom\protected\modules\actions\models\Actions.php"

2. Modify the getPriorityLabels() function in "path to x2crm\X2CRM\x2engine\custom\protected\modules\actions\models\Actions.php"

FROM

    public static function getPriorityLabels(){
        if(!isset(self::$_priorityLabels)){
            self::$_priorityLabels = array(
                1 => Yii::t('actions', 'Low'),
                2 => Yii::t('actions', 'Medium'),
                3 => Yii::t('actions', 'High')
            );
        }
        return self::$_priorityLabels;
    }

TO

    public static function getPriorityLabels(){
        if(!isset(self::$_priorityLabels)){
            self::$_priorityLabels = array(
                1 => Yii::t('actions', '1'),
                2 => Yii::t('actions', '2'),
                3 => Yii::t('actions', '3'),
                4 => Yii::t('actions', '4'),
                5 => Yii::t('actions', '5'),
                6 => Yii::t('actions', '6'),
                7 => Yii::t('actions', '7'),
                8 => Yii::t('actions', '8'),
                9 => Yii::t('actions', '9'),
                10 => Yii::t('actions', '10')
            );
        }
        return self::$_priorityLabels;
    }

Caveat:

You would need to do this every time the software was updated to make sure everything is an exact copy of the 'updated' Actions.php except for your custom priorities.