Changeset 2147428
- Timestamp:
- 08/29/2019 12:34:21 AM (7 years ago)
- Location:
- wp-issues-crm/trunk
- Files:
-
- 6 edited
-
php/admin/class-wic-admin-access.php (modified) (1 diff)
-
php/entity/class-wic-entity-dashboard.php (modified) (2 diffs)
-
php/entity/class-wic-entity-email-cron.php (modified) (2 diffs)
-
php/list/class-wic-list-constituent.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-issues-crm.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-issues-crm/trunk/php/admin/class-wic-admin-access.php
r2147085 r2147428 172 172 173 173 // uncomment dump for debugging 174 error_log ( "check_security for >$entity<, >$action<, >$id<, with data count or data string:" . ( ( is_array( $data ) || is_object ( $data ) )? print_r($data, true) : $data ) );174 // error_log ( "check_security for >$entity<, >$action<, >$id<, with data count or data string:" . ( ( is_array( $data ) || is_object ( $data ) )? print_r($data, true) : $data ) ); 175 175 // end of debugging dump 176 176 /* -
wp-issues-crm/trunk/php/entity/class-wic-entity-dashboard.php
r2146005 r2147428 92 92 $constituent_table = $wpdb->prefix . 'wic_constituent'; 93 93 $post_meta_table = $wpdb->postmeta; 94 $post_table = $wpdb->posts; 94 95 $inbox_image_table = $wpdb->prefix . 'wic_inbox_image'; 95 96 $user_table = $wpdb->users; … … 103 104 $issue_sql = " 104 105 SELECT m3.meta_value as user_id, count(m1.meta_id) as issues_open, sum(if(m2.meta_value < NOW() OR m2.meta_value is null, 1, 0) ) as issues_overdue 105 FROM $post_meta_table m1 106 FROM $post_table p 107 INNER JOIN $post_meta_table m1 on p.id = m1.post_id 106 108 LEFT JOIN $post_meta_table m2 on m2.post_id = m1.post_id and m2.meta_key = 'wic_data_review_date' 107 109 LEFT JOIN $post_meta_table m3 on m3.post_id = m1.post_id and m3.meta_key = 'wic_data_issue_staff' 108 WHERE m1.meta_key = 'wic_data_follow_up_status' AND m1.meta_value = 'open' 110 WHERE m1.meta_key = 'wic_data_follow_up_status' AND m1.meta_value = 'open' AND ( post_status = 'publish' OR post_status = 'private' ) 109 111 GROUP BY m3.meta_value 110 112 "; 111 113 112 114 $message_sql = " 113 115 SELECT -
wp-issues-crm/trunk/php/entity/class-wic-entity-email-cron.php
r2134115 r2147428 42 42 43 43 // create log mail entry in the content director ( one above plugin directory) 44 public static function log_mail( $message ) { 44 public static function log_mail( $message, $log_always = false ) { 45 46 if ( ! $log_always ) { 47 if ( !defined('WP_ISSUES_CRM_USING_LOG_MAIL_VERBOSE') || !WP_ISSUES_CRM_USING_LOG_MAIL_VERBOSE ) { 48 return; 49 } 50 } 45 51 46 52 $wp_content_directory = plugin_dir_path( __FILE__ ) . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR ; … … 136 142 foreach ( $blog_ids as $blog_id ) { 137 143 switch_to_blog ( $blog_id ); 138 self::log_mail ( 'Starting sync run for ' . site_url() );144 self::log_mail ( 'Starting sync run for ' . site_url(), true ); 139 145 WIC_Entity_Email_Account::route_sync(); 140 self::log_mail ( 'Completed sync run for ' . site_url() );146 self::log_mail ( 'Completed sync run for ' . site_url(), true ); 141 147 // check time out and do not continue to other users or start parse/deliver if over time on sync 142 148 if ( time() > $end_time ) { 143 self::log_mail( 'Ending mail_call -- ran out of time after sync run for' . site_url() . ".\n" . self::dump_cron_settings() );149 self::log_mail( 'Ending mail_call -- ran out of time after sync run for' . site_url() . ".\n" . self::dump_cron_settings(), true ); 144 150 die; 145 151 } -
wp-issues-crm/trunk/php/list/class-wic-list-constituent.php
r2145245 r2147428 42 42 $today = new DateTime( current_time ( 'Y-m-d') ); 43 43 $interval = date_diff ( $review_date, $today ); 44 if ( 0 == $interval->invert ) {44 if ( '' == $row_array->case_review_date || 0 == $interval->invert ) { 45 45 $row_class .= " overdue "; 46 46 } -
wp-issues-crm/trunk/readme.txt
r2145649 r2147428 5 5 Requires at least: 5 6 6 Tested up to: 5.2.1 7 Stable tag: 4. 4.1.47 Stable tag: 4.5.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 116 116 * Redefine email capability so that those without it can access emails assigned to them -- inbox tabs and ui powers limited 117 117 * Rewrite security logic for clarity and to prevent cross-user violations of new rules 118 * NOTE: Non-administrators may need to havethe capability to view unassigned records to their role in Configure > security118 * NOTE: Non-administrators may need to add the capability to view unassigned records to their role in Configure > security 119 119 = 4.4.1.4 = 120 120 * Additional table locking -
wp-issues-crm/trunk/wp-issues-crm.php
r2147379 r2147428 48 48 */ 49 49 global $wp_issues_crm_js_css_version; 50 $wp_issues_crm_js_css_version = '4. 4.0'; // may or not be set at release time50 $wp_issues_crm_js_css_version = '4.5.0.1'; // may or not be set at release time 51 51 if ( '' == $wp_issues_crm_js_css_version ) { 52 52 if ( strpos ( site_url(), 'localhost' ) > 0 ) { … … 97 97 if ( isset ( $_GET['wp_issues_crm_run_cron_key'] ) ) { 98 98 if ( WP_ISSUES_CRM_RUN_CRON_KEY == $_GET['wp_issues_crm_run_cron_key'] ) { 99 WIC_Entity_Email_Cron::log_mail ( '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ branching to mail_call initiation +++++++++++++++++++++++++++++++++++++++++++++++++++');99 WIC_Entity_Email_Cron::log_mail ( '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WIC_Entity_Email_Cron::mail_call()+++++++++++++++++++++++++++++++++++++++++++++++++++', true ); 100 100 WIC_Entity_Email_Cron::mail_call(); 101 WIC_Entity_Email_Cron::log_mail ( ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ returned from mail_call +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++');101 WIC_Entity_Email_Cron::log_mail ( '----------------------------------------------------------- returned from mail_call -------------------------------------------------------------', true ); 102 102 die; // proceed no further 103 103 }
Note: See TracChangeset
for help on using the changeset viewer.