• Resolved Eugene

    (@euguk007)


    Hi.

    Could you please explain the purpose of a suspicious vddd() function in ConditionAssesor.php ?

    public static function evaluate($conditionGroup, $inputs)
        {
            $hasConditionMet = true;
            $conditionals =  Arr::get($conditionGroup, 'conditions');
    
            if ($conditionals) {
                $toMatch = Arr::get($conditionGroup, 'match_type');
                foreach ($conditionals as $conditional) {
                    $hasConditionMet = static::assess($conditional, $inputs);
    
                    if(!$hasConditionMet) {
                        vddd([$hasConditionMet, $conditional, $inputs]);
                    }
    
                    if($hasConditionMet && $toMatch == 'match_any') {
                        return true;
                    }
                    if ($toMatch === 'match_all' && !$hasConditionMet) {
                        return false;
                    }
                }
            }
    
            return $hasConditionMet;
        }

    Because it breaks WP with the following error:

    ( ! ) Fatal error: Uncaught Error: Call to undefined function FluentCrm\Includes\Helpers\vddd() in …/wp-content/plugins/fluent-crm/includes/Helpers/ConditionAssesor.php on line 34

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Eugene

    (@euguk007)

    In order for Conditionals in Automation to work I had to comment out this suspicious conditional logic:

    // if(!$hasConditionMet) {
    //     vddd([$hasConditionMet, $conditional, $inputs]);
    // }

    Hope this helps.

    Plugin Author Shahjahan Jewel

    (@techjewel)

    Thanks for reporting. We will fix the issue in our next release (within this week)

    Thread Starter Eugene

    (@euguk007)

    Glad it helped. Look forward to your update ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Function VDDD – What is it ???’ is closed to new replies.