Plugin Directory

Changeset 2072453


Ignore:
Timestamp:
04/22/2019 10:26:50 AM (7 years ago)
Author:
tigrisflexplatform
Message:

fix some bags

Location:
tigris-flexplatform/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tigris-flexplatform/trunk/assets/js/sf-tfp-script.js

    r1979298 r2072453  
    113113                        jQuery( '.vacancy-form__ajax-loader' ).fadeOut();
    114114                        jQuery( '.vacancy-form__response-output' ).text( respond ).fadeIn( function() {
     115                            var that = jQuery( this );
    115116                            setTimeout( function() {
    116                                 jQuery( this ).fadeOut();
     117                                that.fadeOut();
    117118                            }, 5000 );
    118119                        } );
  • tigris-flexplatform/trunk/core/class/TigrisFPSaleforceOAuth.php

    r1979298 r2072453  
    186186                )
    187187            );
    188         if( ! is_wp_error($idtoken_validation_result) && $idtoken_validation_result['response']['code'] == 200) {
     188        if( !empty($idtoken_validation_result) && !is_wp_error($idtoken_validation_result) && $idtoken_validation_result['response']['code'] == 200) {
    189189            $idtoken_response = json_decode($idtoken_validation_result['body'], true);
    190190            $oauth_username = $idtoken_response['email'];
     
    198198            $valid = true;
    199199        }
    200         return array($oauth_username, $idtoken_response['urls']['rest']);
     200        return array($oauth_username, $tigris_rest_data_url);
    201201    }
    202202}
  • tigris-flexplatform/trunk/core/class/class-plugin-tigris-fp-rest.php

    r1979298 r2072453  
    1818            $args = array (
    1919                    'method' => 'GET',
     20                    'timeout' => 50,
    2021                    'headers' => array(
    2122                        'Authorization' => 'Bearer ' .  $_COOKIE['tigris_oauth_access_token'],
     
    5859                    'body' => json_encode($fieldsToInsert),
    5960                    'method' => 'POST',
     61                    'timeout' => 50,
    6062                    'headers' => array(
    6163                        'Authorization' => 'Bearer ' .  $this->_token,
     
    6870               
    6971                $r = wp_remote_request( $url, $args );
    70                 if($r['response']['code'] == 201)
     72                if(!is_wp_error($r) && !empty($r['response']['code']) && $r['response']['code'] == 201)
    7173                    $response = json_decode( $r['body'], true );
    7274            }
     
    7476        } catch (Exception $e) {
    7577            error_log( 'Salesforce error: '.$e );
     78            return false;
    7679        }
    7780    }
     
    8891                    'body' => json_encode($fieldsToUpdate),
    8992                    'method' => 'PATCH',
     93                    'timeout' => 50,
    9094                    'headers' => array(
    9195                        'Authorization' => 'Bearer ' .  $this->_token,
     
    119123                    'body' => json_encode($fieldsToInsert),
    120124                    'method' => 'POST',
     125                    'timeout' => 50,
    121126                    'headers' => array(
    122127                        'Authorization' => 'Bearer ' .  $this->_token,
  • tigris-flexplatform/trunk/index.php

    r2045228 r2072453  
    33Plugin Name: Tigris Flexplatform
    44Description: Integration Tigris user application for Salesforce in Wordpress.
    5 Version: 1.0.1
     5Version: 1.0.2
    66Author: Tigris - Flexplatform
    77Author URI: https://www.tigris.nl
  • tigris-flexplatform/trunk/readme.txt

    r2039503 r2072453  
    77Tested up to: 5.1
    88Requires PHP: 5.6
    9 Stable tag: 1.0.1
     9Stable tag: 1.0.2
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3737Added sort of vacancies by last update date/time
    3838Fixed some bags
     39= 1.0.2 =
     40Fixed some bags
Note: See TracChangeset for help on using the changeset viewer.