• Resolved nonchiedercilaparola

    (@nonchiedercilaparola)


    // FIXME : multi gf sources does not work
                    /*
                     * if (! empty($gf_form_ids) && count($gf_form_ids) > 1 && ! empty($multi_include) && count($multi_include) > 1) {
                     * // process multi-form sources
                     * self::getLogger()->info("#### MULTI sources process");
                     *
                     * $multiCombined = array_combine($gf_form_ids, $multi_include);
                     * self::getLogger()->info($multiCombined);
                     * $countArray = array();
                     * foreach ($multiCombined as $gf_id => $field_id) {
                     * self::getLogger()->info("#### MULTI " . $gf_id . ' -> ' . $field_id);
                     * $entries = $this->getGFEntries($gf_id, $maxentries, $custom_search_criteria, $atts);
                     * $currentReportFields = $this->buildReportFieldsForGF($gf_id, $type, array(
                     * $field_id
                     * ), null, $datasets_invert);
                     *
                     * self::getLogger()->info("#### MULTI Counting " . $gf_id . ' -> ' . $field_id);
                     *
                     * $currentCount = $this->countAnswers($currentReportFields, $entries);
                     * $reportFieldsArray[] = $currentReportFields;
                     *
                     * $answers = reset($currentCount)['answers'];
                     *
                     * $mergedAnswers = array_merge($mergedAnswers, $answers);
                     * $countArray[] = $currentCount;
                     * }
                     *
                     * self::getLogger()->debug("#### MULTI DATA RETRIEVED " . count($reportFieldsArray) . ' graph should be merged');
                     * self::getLogger()->debug($countArray);
                     * self::getLogger()->debug($reportFieldsArray);
                     * $reportFields = reset($reportFieldsArray);
                     * self::getLogger()->debug($reportFields);
                     *
                     * self::getLogger()->debug(array_search("answers", $countArray));
                     *
                     * $reportFields = $this->computeScores($countArray, $reportFields);
                     *
                     * self::getLogger()->info($rpa);
                     * } else
                     */

    what does it mean?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author maxicharts

    (@maxicharts)

    You can only chart from one gravity forms form, not several at the same time on the same chart.

    Thread Starter nonchiedercilaparola

    (@nonchiedercilaparola)

    thank for reply. I was too short in the question. I wanted to ask the reason for this block of commented code: is it an abandoned code block or is it under development?

    Plugin Author maxicharts

    (@maxicharts)

    @nonchiedercilaparola : yes it was started at the beginng of maxicharts because several users asked for it, but it has never been finished. It is not currently under development unfortunately…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘FIXME : multi gf sources does not work’ is closed to new replies.