Changeset 2734640
- Timestamp:
- 05/31/2022 10:12:54 AM (4 years ago)
- Location:
- nirweb-support/trunk
- Files:
-
- 7 edited
-
assets/js/admin.js (modified) (3 diffs)
-
inc/admin/functions/func_answerd_ticket.php (modified) (1 diff)
-
inc/admin/themes/manage_tickets.php (modified) (2 diffs)
-
inc/user/functions/ajax_user_send_answer.php (modified) (1 diff)
-
inc/user/themes/replay_ticket.php (modified) (1 diff)
-
nirweb-support.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nirweb-support/trunk/assets/js/admin.js
r2733006 r2734640 256 256 257 257 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; 258 260 jQuery.ajax({ 259 261 url: wpyarticket.ajax_url, … … 264 266 file_url : jQuery('#nirweb_ticket_frm_file_send_ticket').val(), 265 267 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(), 267 269 status : jQuery('#nirweb_ticket_frm_status_send_ticket').val(), 268 270 proname : jQuery('.proname').text(), … … 276 278 }, 277 279 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; 283 285 }, 284 286 error: function (response) { -
nirweb-support/trunk/inc/admin/functions/func_answerd_ticket.php
r2733006 r2734640 31 31 $ticket_title = sanitize_text_field( $_POST['subject'] ); 32 32 $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 ); 34 34 $ticket_dep = sanitize_text_field( $_POST['department_name'] ); 35 35 $ticket_pri = sanitize_text_field( $_POST['proname'] ); -
nirweb-support/trunk/inc/admin/themes/manage_tickets.php
r2715312 r2734640 3 3 4 4 5 if ( $_GET['action'] == 'edit' ) {5 if ( isset($_GET['action']) && $_GET['action'] == 'edit' ) { 6 6 $ticket_id = ! empty( $_GET['id'] ) ? intval( wp_strip_all_tags($_GET['id']) ) : null; 7 7 if ( $ticket_id ) { … … 25 25 'closed_ticket' 26 26 ]; 27 $curent_tab = i n_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'; 28 28 ?> 29 29 <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 62 62 $ticket_title = sanitize_text_field( $_POST['subject'] ); 63 63 $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 ); 65 65 $ticket_dep = sanitize_text_field( $_POST['dep_name'] ); 66 66 $ticket_pri = sanitize_text_field( $_POST['priority_name'] ); -
nirweb-support/trunk/inc/user/themes/replay_ticket.php
r2715312 r2734640 60 60 <div class="box_info_ticket"> 61 61 <p class="title"><?php echo esc_html__( 'Product', 'nirweb-support' ); ?></p> 62 <p class="info pr iority"><?php echo esc_html( $info_ticket->product_name ); ?></p>62 <p class="info product"><?php echo esc_html( $info_ticket->product_name ); ?></p> 63 63 </div> 64 64 <?php endif; ?> -
nirweb-support/trunk/nirweb-support.php
r2733007 r2734640 4 4 Description: NirWeb support is a great help desk and support plugin for WordPress with full support of WooCommerce 5 5 Author: nirweb Team 6 Version: 2.8. 46 Version: 2.8.5 7 7 Author URI: https://www.nirweb.ir 8 8 Text Domain: nirweb-support -
nirweb-support/trunk/readme.txt
r2733006 r2734640 3 3 Tags: support, Support Ticket, helpdesk, ticket system 4 4 Requires at least: 5.0 5 Tested up to: 5.9.35 Tested up to: 6 6 6 Requires PHP: 7.0 7 Stable tag: 2.8. 37 Stable tag: 2.8.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.