Plugin Directory

Changeset 2734640


Ignore:
Timestamp:
05/31/2022 10:12:54 AM (4 years ago)
Author:
nirweb
Message:

2.8.5

Location:
nirweb-support/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • nirweb-support/trunk/assets/js/admin.js

    r2733006 r2734640  
    256256   
    257257    let send_content_answer =tmce_getContent('nirweb_ticket_answer_editor');
     258   
     259    console.log(jQuery('#nirweb_ticket_frm_department_send_ticket option:selected').text()); return false;
    258260        jQuery.ajax({
    259261            url: wpyarticket.ajax_url,
     
    264266                   file_url : jQuery('#nirweb_ticket_frm_file_send_ticket').val(),
    265267                   department  : jQuery('#nirweb_ticket_frm_department_send_ticket').val(),
    266                    department_name  : jQuery('#nirweb_ticket_frm_department_send_ticket').text(),
     268                   department_name  : jQuery('#nirweb_ticket_frm_department_send_ticket option:selected').text(),
    267269                   status : jQuery('#nirweb_ticket_frm_status_send_ticket').val(),
    268270                   proname : jQuery('.proname').text(),
     
    276278                    },
    277279            success: function (response) {
    278                 console.log(response);
    279                 // jQuery('#send_answerd_ticket').trigger('reset');
    280                 // alert(wpyarticket.send_ans_success);
    281                 // jQuery('.list_all_answered').html(response)
    282                 // return false;
     280               
     281                jQuery('#send_answerd_ticket').trigger('reset');
     282                alert(wpyarticket.send_ans_success);
     283                jQuery('.list_all_answered').html(response)
     284                return false;
    283285            },
    284286            error: function (response) {
  • nirweb-support/trunk/inc/admin/functions/func_answerd_ticket.php

    r2733006 r2734640  
    3131            $ticket_title     = sanitize_text_field( $_POST['subject'] );
    3232            $name_poshtiban   = get_user_by( 'id', intval( sanitize_text_field( $_POST['resivered_id'] ) ) );
    33             $ticket_poshtiban = sanitize_text_field( $name_poshtiban->user_nicename );
     33            $ticket_poshtiban = sanitize_text_field( $name_poshtiban->display_name );
    3434            $ticket_dep       = sanitize_text_field( $_POST['department_name'] );
    3535            $ticket_pri       = sanitize_text_field( $_POST['proname'] );
  • nirweb-support/trunk/inc/admin/themes/manage_tickets.php

    r2715312 r2734640  
    33
    44
    5 if ( $_GET['action'] == 'edit' ) {
     5if ( isset($_GET['action']) && $_GET['action'] == 'edit' ) {
    66    $ticket_id = ! empty( $_GET['id'] ) ? intval( wp_strip_all_tags($_GET['id']) ) : null;
    77    if ( $ticket_id ) {
     
    2525    'closed_ticket'
    2626];
    27     $curent_tab = in_array( $_GET['tab'],$allow_tabs) ? wp_strip_all_tags($_GET['tab']) : 'new_ticket';
     27    $curent_tab = isset($_GET['tab']) && in_array( $_GET['tab'],$allow_tabs) ? wp_strip_all_tags($_GET['tab']) : 'new_ticket';
    2828    ?>
    2929<h1 class="title_page_wpyt"><?php echo esc_html__( 'Tickets', 'nirweb-support' ); ?></h1>
  • nirweb-support/trunk/inc/user/functions/ajax_user_send_answer.php

    r2715312 r2734640  
    6262            $ticket_title     = sanitize_text_field( $_POST['subject'] );
    6363            $name_poshtiban   = get_user_by( 'id', intval( sanitize_text_field( $_POST['id_user'] ) ) );
    64             $ticket_poshtiban = sanitize_text_field( $name_poshtiban->user_nicename );
     64            $ticket_poshtiban = sanitize_text_field( $name_poshtiban->display_name );
    6565            $ticket_dep       = sanitize_text_field( $_POST['dep_name'] );
    6666            $ticket_pri       = sanitize_text_field( $_POST['priority_name'] );
  • nirweb-support/trunk/inc/user/themes/replay_ticket.php

    r2715312 r2734640  
    6060                    <div class="box_info_ticket">
    6161                        <p class="title"><?php echo esc_html__( 'Product', 'nirweb-support' ); ?></p>
    62                         <p class="info priority"><?php echo esc_html( $info_ticket->product_name ); ?></p>
     62                        <p class="info product"><?php echo esc_html( $info_ticket->product_name ); ?></p>
    6363                    </div>
    6464                <?php endif; ?>
  • nirweb-support/trunk/nirweb-support.php

    r2733007 r2734640  
    44Description: NirWeb support is a great help desk and support plugin for WordPress with full support of WooCommerce
    55Author: nirweb Team
    6 Version: 2.8.4
     6Version: 2.8.5
    77Author URI:  https://www.nirweb.ir
    88Text Domain: nirweb-support
  • nirweb-support/trunk/readme.txt

    r2733006 r2734640  
    33Tags: support, Support Ticket, helpdesk, ticket system
    44Requires at least: 5.0
    5 Tested up to: 5.9.3
     5Tested up to: 6
    66Requires PHP: 7.0
    7 Stable tag: 2.8.3
     7Stable tag: 2.8.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.