Plugin Directory

Changeset 2147428


Ignore:
Timestamp:
08/29/2019 12:34:21 AM (7 years ago)
Author:
Will Brownsberger
Message:

version 4.5 work in progress

Location:
wp-issues-crm/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wp-issues-crm/trunk/php/admin/class-wic-admin-access.php

    r2147085 r2147428  
    172172   
    173173        // 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  ) );
    175175        // end of debugging dump
    176176        /*
  • wp-issues-crm/trunk/php/entity/class-wic-entity-dashboard.php

    r2146005 r2147428  
    9292        $constituent_table = $wpdb->prefix . 'wic_constituent';
    9393        $post_meta_table = $wpdb->postmeta;
     94        $post_table = $wpdb->posts;
    9495        $inbox_image_table = $wpdb->prefix . 'wic_inbox_image';
    9596        $user_table = $wpdb->users;
     
    103104        $issue_sql = "
    104105            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
    106108            LEFT JOIN $post_meta_table m2 on m2.post_id = m1.post_id and m2.meta_key = 'wic_data_review_date'
    107109            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' )
    109111            GROUP BY m3.meta_value
    110112        ";
    111    
     113
    112114        $message_sql = "
    113115            SELECT
  • wp-issues-crm/trunk/php/entity/class-wic-entity-email-cron.php

    r2134115 r2147428  
    4242
    4343    // 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        }
    4551
    4652        $wp_content_directory = plugin_dir_path( __FILE__  ) . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR  . '..' . DIRECTORY_SEPARATOR ;
     
    136142        foreach ( $blog_ids as $blog_id ) {
    137143            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 );
    139145            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 );
    141147            // check time out and do not continue to other users or start parse/deliver if over time on sync
    142148            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 );
    144150                die;
    145151            }
  • wp-issues-crm/trunk/php/list/class-wic-list-constituent.php

    r2145245 r2147428  
    4242                $today = new DateTime( current_time ( 'Y-m-d') );
    4343                $interval = date_diff ( $review_date, $today );
    44                 if ( 0 == $interval->invert ) {
     44                if ( '' == $row_array->case_review_date || 0 == $interval->invert ) {
    4545                    $row_class .= " overdue ";             
    4646                }
  • wp-issues-crm/trunk/readme.txt

    r2145649 r2147428  
    55Requires at least: 5
    66Tested up to: 5.2.1
    7 Stable tag: 4.4.1.4
     7Stable tag: 4.5.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    116116* Redefine email capability so that those without it can access emails assigned to them -- inbox tabs and ui powers limited
    117117* Rewrite security logic for clarity and to prevent cross-user violations of new rules
    118 * NOTE: Non-administrators may need to have the capability to view unassigned records to their role in Configure > security
     118* NOTE: Non-administrators may need to add the capability to view unassigned records to their role in Configure > security
    119119= 4.4.1.4 =
    120120* Additional table locking
  • wp-issues-crm/trunk/wp-issues-crm.php

    r2147379 r2147428  
    4848*/
    4949global $wp_issues_crm_js_css_version;
    50 $wp_issues_crm_js_css_version = '4.4.0'; // may or not be set at release time
     50$wp_issues_crm_js_css_version = '4.5.0.1'; // may or not be set at release time
    5151if ( '' == $wp_issues_crm_js_css_version ) {
    5252    if ( strpos ( site_url(), 'localhost' ) > 0 ) {
     
    9797    if ( isset ( $_GET['wp_issues_crm_run_cron_key'] ) ) {
    9898        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 );
    100100            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 );
    102102            die; // proceed no further
    103103        }
Note: See TracChangeset for help on using the changeset viewer.