Plugin Directory

Changeset 3235383


Ignore:
Timestamp:
02/05/2025 12:38:48 PM (13 months ago)
Author:
wpfeedback
Message:

updated to 4.1.1

Location:
atarim-visual-collaboration
Files:
209 added
4 edited

Legend:

Unmodified
Added
Removed
  • atarim-visual-collaboration/trunk/atarim-visual-collaboration.php

    r3225314 r3235383  
    33 * Plugin Name: Atarim: Visual Website Collaboration, Feedback & Workflow Management
    44 * Description: Atarim Visual Collaboration makes it easy and efficient to collaborate on websites with your clients, internal team, contractors…anyone! It’s used by nearly 10,000 agencies and freelancers worldwide on over 120,000 websites.
    5  * Version: 4.1.0
     5 * Version: 4.1.1
    66 * Requires at least: 5.0
    77 * Require PHP: 7.4
     
    3030}
    3131if ( ! defined( 'WPF_VERSION' ) ) {
    32     define( 'WPF_VERSION', '4.1.0' );
     32    define( 'WPF_VERSION', '4.1.1' );
    3333}
    3434
  • atarim-visual-collaboration/trunk/inc/wpf_function.php

    r3221996 r3235383  
    10411041function syncUsers() {
    10421042    $users                = wpf_api_func_get_users();
     1043    $users                = json_decode( $users, true );
    10431044    $args                 = [];
    10441045    $args['wpf_site_id']  = get_option( 'wpf_site_id' );
    1045     $args['responseBody'] = json_decode( $users ); 
    1046     // get all the user ID
    1047     $wp_users = get_users( array( 'fields' => array( 'ID' ) ) );
     1046    $args['responseBody'] = $users;
     1047   
    10481048    // flaten the data to a single array and added to the request
    10491049    $args['wpf_wp_user_ids'] = array_map( function( $user ) {
    1050         return $user->ID;
    1051     }, $wp_users );
     1050        return $user['wpf_id'];
     1051    }, $users ?? [] );
    10521052
    10531053    $url         = WPF_CRM_API . "wp-api/sync/users";
  • atarim-visual-collaboration/trunk/js/wpf_common_functions.js

    r3221996 r3235383  
    149149function generate_task(id, internal, note) {
    150150    // Initialize base64 URL variable
    151     var base64URL = '';
     151    let base64URL = '';
     152    let screenshotReady = false;
    152153
    153154    // Capture screenshot of the document body
     
    162163    }).then(function(canvas) {
    163164        base64URL = canvas.toDataURL('image/jpeg', 1);
    164         new_task_screenshot(id, base64URL);
     165        screenshotReady = true;
     166
     167        if (tasks_on_page[id] > 0) {
     168            new_task_screenshot(id, base64URL);
     169        }
    165170    });
    166171
     
    495500                const commentId = responseData['id'];
    496501                update_comment_attributes(temp_class, commentId);
     502
     503                if (screenshotReady && base64URL) {
     504                    new_task_screenshot(id, base64URL);
     505                }
    497506            }
    498507        }
  • atarim-visual-collaboration/trunk/readme.txt

    r3225314 r3235383  
    33Tags: collaboration, feedback, bug tracking, project management, website feedback
    44Requires at least: 5.0
    5 Tested up to: 6.6
    6 Stable tag: 4.1.0
     5Tested up to: 6.7
     6Stable tag: 4.1.1
    77Requires PHP: 7.4
    88License: GPLv3 or later
     
    375375
    376376== Changelog ==
     377
     378= 4.1.1 =
     379* **Auto Screenshot** - On some sites, the auto screenshot were not getting captured due to delay in the process. This is fixed.
    377380
    378381= 4.1.0 =
Note: See TracChangeset for help on using the changeset viewer.