Plugin Directory

Changeset 3390513


Ignore:
Timestamp:
11/05/2025 01:38:07 PM (5 months ago)
Author:
CRMPerks
Message:

releasing 1.1.4

Location:
gf-zendesk
Files:
4 edited
4 copied

Legend:

Unmodified
Added
Removed
  • gf-zendesk/tags/1.1.4/gf-zendesk.php

    r3280570 r3390513  
    33* Plugin Name: WP Gravity Forms Zendesk
    44* Description: Integrates Gravity Forms with Zendesk allowing form submissions to be automatically sent to your Zendesk account
    5 * Version: 1.1.3
     5* Version: 1.1.4
    66* Requires at least: 3.8
    77* Author URI: https://www.crmperks.com
     
    2626  public  $id = 'vxg_zendesk';
    2727  public  $domain = 'vxg-zendesk';
    28   public  $version = "1.1.3";
     28  public  $version = "1.1.4";
    2929  public  $update_id = '30006';
    3030  public  $min_gravityforms_version = '1.3.9';
     
    530530
    531531  if(isset($entry[$gf_field_id])){ 
    532   $value=maybe_unserialize($entry[$gf_field_id]);
     532    $value=$entry[$gf_field_id];   
    533533    if(is_numeric($gf_field_id)){
    534534  $field = RGFormsModel::get_field($form, $gf_field_id);
     535     if(isset($field->type) && in_array($field->type,array('list')) ){
     536     $value=maybe_unserialize($value);
     537  }
    535538  if( (isset($field->storageType) && $field->storageType == 'json') || $field->type == 'fileupload' ){
    536539   $value_temp=json_decode($value,1);   if(!empty($value_temp)){ $value=$value_temp; }
     540  }
     541    if(in_array($gf_field_id,array('date_created','payment_date'))){
     542      $value=strtotime($value);
     543       $offset=get_option('gmt_offset');
     544     $offset=$offset*3600;   
     545     $value+=$offset;
     546    $format=get_option( 'date_format' ).' '.get_option( 'time_format' );
     547     $value=date($format, $value);
     548 
    537549  }
    538550 
  • gf-zendesk/tags/1.1.4/includes/edit-form.php

    r3130563 r3390513  
    429429  SetFieldProperty('crm_object',setting.find('.sel_object').val());
    430430  // We add the Object choices in the list to the field choices.
    431   field["choices"] = new Array();
    432  
     431 field.choices = new Array();
    433432  div.find('li').each(function() {
    434433  choice = new Choice();
     
    436435  choice.value = $(this).data('value').toString();
    437436  choice.isSelected = $(this).data('default')*1;
    438 
    439   field["choices"].push(choice);
     437if ( FieldIsChoiceType( field ) ) {
     438        InsertFieldForChoice( choice, field );
     439    }
     440        field.choices.push( choice );
     441 // field["choices"].push(choice);
    440442  });
    441443  // We update the field choices in the field display
    442   UpdateFieldChoices(field.type);
    443   LoadFieldChoices(field);
     444 // UpdateFieldChoices(field.type);
     445  LoadFieldChoices( field );
     446  RefreshSelectedFieldPreview();
    444447  toggle_choices(obj);
    445448  })
  • gf-zendesk/tags/1.1.4/readme.txt

    r3280570 r3390513  
    44Requires at least: 3.8
    55Tested up to: 6.8
    6 Stable tag: 1.1.3
    7 Version: 1.1.3
     6Stable tag: 1.1.4
     7Version: 1.1.4
    88Requires PHP: 5.3
    99License: GPLv3
     
    109109== Changelog ==
    110110
     111= 1.1.4 =
     112* fixed "entry created date" issue.
     113
    111114= 1.1.3 =
    112115* fixed "open redirect issue with state parameter".
  • gf-zendesk/trunk/gf-zendesk.php

    r3280570 r3390513  
    33* Plugin Name: WP Gravity Forms Zendesk
    44* Description: Integrates Gravity Forms with Zendesk allowing form submissions to be automatically sent to your Zendesk account
    5 * Version: 1.1.3
     5* Version: 1.1.4
    66* Requires at least: 3.8
    77* Author URI: https://www.crmperks.com
     
    2626  public  $id = 'vxg_zendesk';
    2727  public  $domain = 'vxg-zendesk';
    28   public  $version = "1.1.3";
     28  public  $version = "1.1.4";
    2929  public  $update_id = '30006';
    3030  public  $min_gravityforms_version = '1.3.9';
     
    530530
    531531  if(isset($entry[$gf_field_id])){ 
    532   $value=maybe_unserialize($entry[$gf_field_id]);
     532    $value=$entry[$gf_field_id];   
    533533    if(is_numeric($gf_field_id)){
    534534  $field = RGFormsModel::get_field($form, $gf_field_id);
     535     if(isset($field->type) && in_array($field->type,array('list')) ){
     536     $value=maybe_unserialize($value);
     537  }
    535538  if( (isset($field->storageType) && $field->storageType == 'json') || $field->type == 'fileupload' ){
    536539   $value_temp=json_decode($value,1);   if(!empty($value_temp)){ $value=$value_temp; }
     540  }
     541    if(in_array($gf_field_id,array('date_created','payment_date'))){
     542      $value=strtotime($value);
     543       $offset=get_option('gmt_offset');
     544     $offset=$offset*3600;   
     545     $value+=$offset;
     546    $format=get_option( 'date_format' ).' '.get_option( 'time_format' );
     547     $value=date($format, $value);
     548 
    537549  }
    538550 
  • gf-zendesk/trunk/includes/edit-form.php

    r3130563 r3390513  
    429429  SetFieldProperty('crm_object',setting.find('.sel_object').val());
    430430  // We add the Object choices in the list to the field choices.
    431   field["choices"] = new Array();
    432  
     431 field.choices = new Array();
    433432  div.find('li').each(function() {
    434433  choice = new Choice();
     
    436435  choice.value = $(this).data('value').toString();
    437436  choice.isSelected = $(this).data('default')*1;
    438 
    439   field["choices"].push(choice);
     437if ( FieldIsChoiceType( field ) ) {
     438        InsertFieldForChoice( choice, field );
     439    }
     440        field.choices.push( choice );
     441 // field["choices"].push(choice);
    440442  });
    441443  // We update the field choices in the field display
    442   UpdateFieldChoices(field.type);
    443   LoadFieldChoices(field);
     444 // UpdateFieldChoices(field.type);
     445  LoadFieldChoices( field );
     446  RefreshSelectedFieldPreview();
    444447  toggle_choices(obj);
    445448  })
  • gf-zendesk/trunk/readme.txt

    r3280570 r3390513  
    44Requires at least: 3.8
    55Tested up to: 6.8
    6 Stable tag: 1.1.3
    7 Version: 1.1.3
     6Stable tag: 1.1.4
     7Version: 1.1.4
    88Requires PHP: 5.3
    99License: GPLv3
     
    109109== Changelog ==
    110110
     111= 1.1.4 =
     112* fixed "entry created date" issue.
     113
    111114= 1.1.3 =
    112115* fixed "open redirect issue with state parameter".
Note: See TracChangeset for help on using the changeset viewer.