Plugin Directory

Changeset 2149019


Ignore:
Timestamp:
08/31/2019 07:08:12 PM (7 years ago)
Author:
Will Brownsberger
Message:

4.5.1.0

Location:
wp-issues-crm
Files:
4 edited
43 copied

Legend:

Unmodified
Added
Removed
  • wp-issues-crm/tags/4.5.1.0/trunk/php/entity/class-wic-entity-email-inbox.php

    r2149004 r2149019  
    8080        // get pipe seperated list of team from emails
    8181        $team_list = isset ( $form_variables_object->team_list ) ? $form_variables_object->team_list : '';
    82         $team_list_array = $team_list ? explode ( '|', $team_list ): array();
     82        $team_list_array = $team_list ? explode ( '|', $team_list ): array( 'zzz@zzz.zzz'); // put in a never found dummy email to avoid empty criterion
    8383        // get current folder
    8484        $folder = WIC_Entity_Email_Account::get_folder();
     
    151151        /*
    152152        *
    153         * this is a hook to allow substitution of category definitions without reparsing the inbox
     153        * this is a hook to allow substitution of category definitions without reparsing the inbox.  Do not user wild card like phrases; will conflict with prepare
    154154        *
    155155        * the following is an example that could be placed in a local plugin -- always include leading and trailing white spaces around the defined term
     
    199199            (
    200200            'CATEGORY_TEAM' == $data->tab ? " $team_list_criterion AND assigned_subject is null AND " :
    201             $wpdb->prepare (
    202                     " IF(
    203                         assigned_subject is NULL,
    204                         IF( mapped_issue > 0, 'CATEGORY_ADVOCACY', $category_phrase ),
    205                         IF( subject_is_final, 'CATEGORY_READY', 'CATEGORY_ASSIGNED' )
    206                     ) = %s AND ( NOT $team_list_criterion OR assigned_subject IS NOT NULL ) AND ",
    207                     array ( $data->tab )
    208                 )
     201                (
     202                    $wpdb->prepare (
     203                        " IF(
     204                            assigned_subject is NULL,
     205                            IF( mapped_issue > 0, 'CATEGORY_ADVOCACY', $category_phrase ),
     206                            IF( subject_is_final, 'CATEGORY_READY', 'CATEGORY_ASSIGNED' )
     207                        ) = %s" ,
     208                        array ( $data->tab )
     209                    )
     210                    .   
     211                    " AND ( NOT $team_list_criterion OR assigned_subject IS NOT NULL ) AND "
     212                )
    209213            )
    210214            :
  • wp-issues-crm/tags/4.5.1.0/trunk/php/entity/class-wic-entity-email-process.php

    r2145245 r2149019  
    351351        */
    352352        foreach ( $options as $key => $value ) {
     353            // will hard sanitize this option before using it -- comes in charcater limited and is used only character limited --  WP sanitization routines strip wild cards
     354            if ( 'team_list' == $key) {
     355                continue;
     356            }
    353357            if (  'non_constituent_response_message' == $key ) {
    354358                $options->key = wp_kses_post ( $value );
  • wp-issues-crm/tags/4.5.1.0/trunk/readme.txt

    r2149005 r2149019  
    108108
    109109== Changelog ==
     110= 4.5.1.1 =
     111* Fixes related to wild card handling and empty team list
    110112= 4.5.1.0 =
    111113* Revise handling of CATEGORY_TEAM -- based it on new email control Tab, rather than over inclusive user table approach
  • wp-issues-crm/tags/4.5.1.0/trunk/wp-issues-crm.php

    r2149005 r2149019  
    44 * Plugin URI: http://wp-issues-crm.com
    55 * Description: Constituent Relationship Management for organizations that respond to constituents.  Organizes constituent contacts ( calls, etc. ) around Wordpress posts and categories.
    6  * Version: 4.5.1.0
     6 * Version: 4.5.1.1
    77 * Author: Will Brownsberger
    88 * Author URI: http://willbrownsberger.com
     
    4848*/
    4949global $wp_issues_crm_js_css_version;
    50 $wp_issues_crm_js_css_version = '4.5.1.0'; // may or not be set at release time
     50$wp_issues_crm_js_css_version = '4.5.1.1'; // may or not be set at release time
    5151if ( '' == $wp_issues_crm_js_css_version ) {
    5252    if ( strpos ( site_url(), 'localhost' ) > 0 ) {
  • wp-issues-crm/trunk/php/entity/class-wic-entity-email-inbox.php

    r2149004 r2149019  
    8080        // get pipe seperated list of team from emails
    8181        $team_list = isset ( $form_variables_object->team_list ) ? $form_variables_object->team_list : '';
    82         $team_list_array = $team_list ? explode ( '|', $team_list ): array();
     82        $team_list_array = $team_list ? explode ( '|', $team_list ): array( 'zzz@zzz.zzz'); // put in a never found dummy email to avoid empty criterion
    8383        // get current folder
    8484        $folder = WIC_Entity_Email_Account::get_folder();
     
    151151        /*
    152152        *
    153         * this is a hook to allow substitution of category definitions without reparsing the inbox
     153        * this is a hook to allow substitution of category definitions without reparsing the inbox.  Do not user wild card like phrases; will conflict with prepare
    154154        *
    155155        * the following is an example that could be placed in a local plugin -- always include leading and trailing white spaces around the defined term
     
    199199            (
    200200            'CATEGORY_TEAM' == $data->tab ? " $team_list_criterion AND assigned_subject is null AND " :
    201             $wpdb->prepare (
    202                     " IF(
    203                         assigned_subject is NULL,
    204                         IF( mapped_issue > 0, 'CATEGORY_ADVOCACY', $category_phrase ),
    205                         IF( subject_is_final, 'CATEGORY_READY', 'CATEGORY_ASSIGNED' )
    206                     ) = %s AND ( NOT $team_list_criterion OR assigned_subject IS NOT NULL ) AND ",
    207                     array ( $data->tab )
    208                 )
     201                (
     202                    $wpdb->prepare (
     203                        " IF(
     204                            assigned_subject is NULL,
     205                            IF( mapped_issue > 0, 'CATEGORY_ADVOCACY', $category_phrase ),
     206                            IF( subject_is_final, 'CATEGORY_READY', 'CATEGORY_ASSIGNED' )
     207                        ) = %s" ,
     208                        array ( $data->tab )
     209                    )
     210                    .   
     211                    " AND ( NOT $team_list_criterion OR assigned_subject IS NOT NULL ) AND "
     212                )
    209213            )
    210214            :
  • wp-issues-crm/trunk/php/entity/class-wic-entity-email-process.php

    r2145245 r2149019  
    351351        */
    352352        foreach ( $options as $key => $value ) {
     353            // will hard sanitize this option before using it -- comes in charcater limited and is used only character limited --  WP sanitization routines strip wild cards
     354            if ( 'team_list' == $key) {
     355                continue;
     356            }
    353357            if (  'non_constituent_response_message' == $key ) {
    354358                $options->key = wp_kses_post ( $value );
  • wp-issues-crm/trunk/readme.txt

    r2149005 r2149019  
    108108
    109109== Changelog ==
     110= 4.5.1.1 =
     111* Fixes related to wild card handling and empty team list
    110112= 4.5.1.0 =
    111113* Revise handling of CATEGORY_TEAM -- based it on new email control Tab, rather than over inclusive user table approach
  • wp-issues-crm/trunk/wp-issues-crm.php

    r2149005 r2149019  
    44 * Plugin URI: http://wp-issues-crm.com
    55 * Description: Constituent Relationship Management for organizations that respond to constituents.  Organizes constituent contacts ( calls, etc. ) around Wordpress posts and categories.
    6  * Version: 4.5.1.0
     6 * Version: 4.5.1.1
    77 * Author: Will Brownsberger
    88 * Author URI: http://willbrownsberger.com
     
    4848*/
    4949global $wp_issues_crm_js_css_version;
    50 $wp_issues_crm_js_css_version = '4.5.1.0'; // may or not be set at release time
     50$wp_issues_crm_js_css_version = '4.5.1.1'; // may or not be set at release time
    5151if ( '' == $wp_issues_crm_js_css_version ) {
    5252    if ( strpos ( site_url(), 'localhost' ) > 0 ) {
Note: See TracChangeset for help on using the changeset viewer.