Plugin Directory

Changeset 1677085


Ignore:
Timestamp:
06/12/2017 11:47:18 PM (9 years ago)
Author:
followize
Message:

Correções de erro

Location:
followize-extension-gf
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • followize-extension-gf/tags/0.2.2/class-gf-followize.php

    r1650674 r1677085  
    252252    private function _get_fields( $fields_map, $form, $entry )
    253253    {
     254        $fields = array();
     255
     256        if ( ! $this->is_valid_array( $fields_map ) ) {
     257            return $fields;
     258        }
     259
    254260        foreach ( $fields_map as $key => $value ) {
    255261            $fields[ $key ] = Utils::array_to_string( $this->get_field_value( $form, $entry, $value ) );
     
    261267    private function _get_custom_fields( $custom_fields_map, $form, $entry )
    262268    {
     269        $fields = array();
     270
     271        if ( ! $this->is_valid_array( $custom_fields_map ) ) {
     272            return $fields;
     273        }
     274
    263275        foreach ( $custom_fields_map as $key => $value ) {
    264276            $fields[ $key ] = Utils::array_to_string( $this->get_field_value( $form, $entry, $value ) );
     
    311323        return $list;
    312324    }
     325
     326    public function is_valid_array( $array ) {
     327        return ( is_array( $array ) && ! empty( $array ) );
     328    }
    313329}
  • followize-extension-gf/tags/0.2.2/followize-extension-gf.php

    r1671855 r1677085  
    33    Plugin Name: Followize Extension - Gravity Forms
    44    Plugin URI: https://www.followize.com.br/
    5     Version: 0.2.1
     5    Version: 0.2.2
    66    Author: Followize
    77    Author URI: https://www.followize.com.br/
     
    2525    const PLUGIN_SLUG = 'followize-extension-gf';
    2626    const API_URL     = 'https://www.followize.com.br/api/v2/Leads/';
    27     const VERSION     = '0.2.1';
     27    const VERSION     = '0.2.2';
    2828
    2929    public static function uses( $class_name, $location )
  • followize-extension-gf/tags/0.2.2/readme.txt

    r1671855 r1677085  
    11=== Followize Extension - Gravity Forms ===
     2
    23Contributors: followize, daniel-developer
    34Tags: CRM, CRM tools, lead capture, lead collection, lead management, lead tracking, leads, gf, gravity forms
    45Requires at least: 4.6
    56Tested up to: 4.8
    6 Stable tag: 0.2.1
     7Stable tag: 0.2.2
    78License: GPLv2
    89License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1112
    1213== Description ==
     14
    1315Este plugin foi desenvolvido para possibilitar a integração do Gravity Forms ao Followize, um software de gestão de leads capaz de organizar e padronizar o processo de atendimento, além de analisar o desempenho da equipe comercial e ações de marketing de uma maneira objetiva, possibilitando mais produtividade e, é claro, mais lucros.
    1416
     
    1820
    1921== Installation ==
     22
    20231. Faça upload deste plugin em seu WordPress, e ative-o;
    21242. Entre no menu lateral "Formulários > Configurações > Followize";
     
    2629
    2730== Screenshots ==
     31
    28321. Configurações gerais do plugin
    29332. Configuração do feed
    3034
    3135== Changelog ==
     36
     37= 0.2.2 - 12-06-2017 =
     38
     39* Validação de entrada dos campos
    3240
    3341= 0.2.1 - 06-06-2017 =
  • followize-extension-gf/trunk/class-gf-followize.php

    r1650674 r1677085  
    252252    private function _get_fields( $fields_map, $form, $entry )
    253253    {
     254        $fields = array();
     255
     256        if ( ! $this->is_valid_array( $fields_map ) ) {
     257            return $fields;
     258        }
     259
    254260        foreach ( $fields_map as $key => $value ) {
    255261            $fields[ $key ] = Utils::array_to_string( $this->get_field_value( $form, $entry, $value ) );
     
    261267    private function _get_custom_fields( $custom_fields_map, $form, $entry )
    262268    {
     269        $fields = array();
     270
     271        if ( ! $this->is_valid_array( $custom_fields_map ) ) {
     272            return $fields;
     273        }
     274
    263275        foreach ( $custom_fields_map as $key => $value ) {
    264276            $fields[ $key ] = Utils::array_to_string( $this->get_field_value( $form, $entry, $value ) );
     
    311323        return $list;
    312324    }
     325
     326    public function is_valid_array( $array ) {
     327        return ( is_array( $array ) && ! empty( $array ) );
     328    }
    313329}
  • followize-extension-gf/trunk/followize-extension-gf.php

    r1671855 r1677085  
    33    Plugin Name: Followize Extension - Gravity Forms
    44    Plugin URI: https://www.followize.com.br/
    5     Version: 0.2.1
     5    Version: 0.2.2
    66    Author: Followize
    77    Author URI: https://www.followize.com.br/
     
    2525    const PLUGIN_SLUG = 'followize-extension-gf';
    2626    const API_URL     = 'https://www.followize.com.br/api/v2/Leads/';
    27     const VERSION     = '0.2.1';
     27    const VERSION     = '0.2.2';
    2828
    2929    public static function uses( $class_name, $location )
  • followize-extension-gf/trunk/readme.txt

    r1671855 r1677085  
    11=== Followize Extension - Gravity Forms ===
     2
    23Contributors: followize, daniel-developer
    34Tags: CRM, CRM tools, lead capture, lead collection, lead management, lead tracking, leads, gf, gravity forms
    45Requires at least: 4.6
    56Tested up to: 4.8
    6 Stable tag: 0.2.1
     7Stable tag: 0.2.2
    78License: GPLv2
    89License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1112
    1213== Description ==
     14
    1315Este plugin foi desenvolvido para possibilitar a integração do Gravity Forms ao Followize, um software de gestão de leads capaz de organizar e padronizar o processo de atendimento, além de analisar o desempenho da equipe comercial e ações de marketing de uma maneira objetiva, possibilitando mais produtividade e, é claro, mais lucros.
    1416
     
    1820
    1921== Installation ==
     22
    20231. Faça upload deste plugin em seu WordPress, e ative-o;
    21242. Entre no menu lateral "Formulários > Configurações > Followize";
     
    2629
    2730== Screenshots ==
     31
    28321. Configurações gerais do plugin
    29332. Configuração do feed
    3034
    3135== Changelog ==
     36
     37= 0.2.2 - 12-06-2017 =
     38
     39* Validação de entrada dos campos
    3240
    3341= 0.2.1 - 06-06-2017 =
Note: See TracChangeset for help on using the changeset viewer.