Changeset 2698983
- Timestamp:
- 03/24/2022 02:34:17 PM (4 years ago)
- Location:
- wp-hr-manager/trunk
- Files:
-
- 4 edited
-
modules/hrm/includes/admin/class-menu.php (modified) (5 diffs)
-
modules/hrm/includes/class-form-handler.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
wp-hr-manager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-hr-manager/trunk/modules/hrm/includes/admin/class-menu.php
r2631006 r2698983 209 209 public function employee_page() 210 210 { 211 $action = ( isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action']) : 'list' );212 $id = ( isset( $_GET['id'] ) ? intval( sanitize_text_field( $_GET['id'] ) ) : 0 );211 $action = ( isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : 'list' ); 212 $id = ( isset( $_GET['id'] ) ? intval( sanitize_text_field( $_GET['id'] ) ) : 0 ); 213 213 switch ( $action ) { 214 214 case 'view': … … 243 243 public function employee_my_profile_page() 244 244 { 245 $action = ( isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action']) : 'view' );246 $id = ( isset( $_GET['id'] ) ? intval( sanitize_text_field( $_GET['id'] ) ) : intval( get_current_user_id() ) );245 $action = ( isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : 'view' ); 246 $id = ( isset( $_GET['id'] ) ? intval( sanitize_text_field( $_GET['id'] ) ) : intval( get_current_user_id() ) ); 247 247 switch ( $action ) { 248 248 case 'view': … … 280 280 public function department_page() 281 281 { 282 $action = ( isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action']) : 'list' );283 $id = ( isset( $_GET['id'] ) ? intval( sanitize_text_field( $_GET['id'] ) ) : 0 );282 $action = ( isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : 'list' ); 283 $id = ( isset( $_GET['id'] ) ? intval( sanitize_text_field( $_GET['id'] ) ) : 0 ); 284 284 switch ( $action ) { 285 285 case 'view': … … 339 339 { 340 340 341 if ( isset( $_GET['subpage'] ) && sanitize_text_field( $_GET['subpage']) == 'location' ) {341 if ( isset( $_GET['subpage'] ) && sanitize_text_field( $_GET['subpage'] ) == 'location' ) { 342 342 include WPHR_HRM_VIEWS . '/leave/holidayByLocation.php'; 343 343 } else { … … 374 374 public function leave_requests() 375 375 { 376 $view = ( isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view']) : 'list' );376 $view = ( isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view'] ) : 'list' ); 377 377 switch ( $view ) { 378 378 case 'new': -
wp-hr-manager/trunk/modules/hrm/includes/class-form-handler.php
r2631006 r2698983 613 613 wp_die(__('You do not have sufficient permissions to do this action', 'wphr')); 614 614 } 615 $financial_end_date = ''; 616 $financial_start_date = ''; 615 617 $length_hours = 8; 616 618 $from_time = !empty($_POST['from_time']) ? sanitize_text_field( strtotime($_POST['from_time']) ) : 0; … … 708 710 $day_wise_from_times = custom_sanitize_array( $_POST['day_wise_from_times'] ); 709 711 $day_wise_to_times = custom_sanitize_array( $_POST['day_wise_to_times'] ); 710 712 /*$from_times_total = explode(" ", $day_wise_from_times); 713 $to_times_total = explode(" ", $day_wise_to_times); 714 echo '<pre>'; 715 print_r( $from_times_total); 716 print_r( $from_times_total); 717 print_r($day_wise_to_times); 718 print_r(count($day_wise_to_times)); 719 720 die;*/ 711 721 if (is_array($day_wise_from_times) && count($day_wise_from_times)) { 712 722 foreach ($day_wise_from_times as $key => $value) { 713 $from_time = strtotime($value); 723 if($value != ''){ 724 $from_time = strtotime($value); 725 } 714 726 } 715 727 } 716 if (is_array($day_wise_from_times) && count($day_wise_ from_times)) {728 if (is_array($day_wise_from_times) && count($day_wise_to_times)) { 717 729 foreach ($day_wise_to_times as $key => $value) { 718 $to_time = strtotime($value); 730 if($value != ''){ 731 $to_time = strtotime($value); 732 } 719 733 } 720 734 } -
wp-hr-manager/trunk/readme.txt
r2684061 r2698983 5 5 Tags: HR, Human Resources, Attendance Management, Recruitment, Leave, Employee Self Service, ESS, People Management 6 6 Requires at least: 5.0 7 Tested up to: 5. 8.38 Stable tag: 3.0. 37 Tested up to: 5.9.2 8 Stable tag: 3.0.4 9 9 License: GPLv2 10 10 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GLKGN964GRZJW … … 191 191 192 192 == Changelog == 193 = v3.0.4-> 24 March 2022 194 * Fixed Leave Hours Issue 195 *Fixed WP-HR-Manager Menu issue 193 196 194 197 = v3.0.3-> 23 February 2022 … … 391 394 392 395 == Upgrade Notice == 396 = v3.0.4-> 24 March 2022 397 * Fixed Leave Hours Issue 398 *Fixed WP-HR-Manager Menu issue 399 393 400 = v3.0.3-> 23 February 2022 394 401 * Security fix -
wp-hr-manager/trunk/wp-hr-manager.php
r2684061 r2698983 7 7 * Author: Black and White Digital Ltd 8 8 * Author URI: http://www.wphrmanager.com 9 * Version: 3.0. 39 * Version: 3.0.4 10 10 * Requires at least: 5 11 11 * License: GPLv2
Note: See TracChangeset
for help on using the changeset viewer.