WordPress.org

Plugin Directory

Changeset 442756


Ignore:
Timestamp:
09/23/11 21:44:46 (3 years ago)
Author:
williamsba1
Message:

v1.2.1 fixes bug when adding tasks without BuddyPress installed

Location:
collabpress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • collabpress/trunk/cp-loader.php

    r442577 r442756  
    44Plugin URI: http://collabpress.org/ 
    55Description: A Project Management Plugin for WordPress 
    6 Version: 1.2 
     6Version: 1.2.1 
    77Author: WebDevStudios.com 
    88Author URI: http://webdevstudios.com/ 
     
    2727 
    2828// CollabPress Define(s) 
    29 define( 'CP_VERSION', '1.2' ); 
     29define( 'CP_VERSION', '1.2.1' ); 
    3030define( 'CP_BASENAME', plugin_basename(__FILE__) ); 
    3131define( 'CP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 
  • collabpress/trunk/includes/menus/isset/task.php

    r442577 r442756  
    2020    update_post_meta( $task_id, '_cp-task-status', 'open' ); 
    2121 
    22     if ( isset($_GET['project']) || $cp_bp_integration->get_current_item_project() ) { 
    23         if ( !$project_id = $cp_bp_integration->get_current_item_project() ) 
    24             $project_id = $cp_project->id; 
     22    // Where we get the project_id from depends on whether this is a BP installation 
     23    if ( isset( $_GET['project'] ) ) { 
     24        $project_id = $cp_project->id; 
     25    } else if ( is_object( $cp_bp_integration ) && method_exists( $cp_bp_integration, 'get_current_item_project' ) ) { 
     26        $project_id = $cp_bp_integration->get_current_item_project(); 
     27    } else { 
     28        $project_id = NULL; 
     29    } 
     30 
     31    if ( $project_id ) { 
    2532        update_post_meta( $task_id, '_cp-project-id', $project_id ); 
    2633    } 
    2734 
    28     if ( isset($_GET['task-list']) || $cp_bp_integration->get_current_item_task_list() ) { 
    29         if ( !$task_list_id = $cp_bp_integration->get_current_item_task_list() ) 
    30             $task_list_id = $cp_task_list->id; 
     35    // Where we get the task list from depends on whether this is a BP installation 
     36    if ( isset( $_GET['task-list'] ) ) { 
     37        $task_list_id = $cp_task_list->id; 
     38    } else if ( is_object( $cp_bp_integration ) && method_exists( $cp_bp_integration, 'get_current_item_task_list' ) ) { 
     39        $task_list_id = $cp_bp_integration->get_current_item_task_list(); 
     40    } else { 
     41        $task_list_id = NULL; 
     42    } 
     43 
     44    if ( $task_list_id ) { 
    3145        update_post_meta( $task_id, '_cp-task-list-id', $task_list_id ); 
    3246    } 
  • collabpress/trunk/readme.txt

    r442577 r442756  
    55Requires at least: 3.0 
    66Tested up to: 3.2.1 
    7 Stable tag: 1.2 
     7Stable tag: 1.2.1 
    88 
    99Project management and task tracking software for WordPress 
     
    3737 
    3838== Changelog == 
     39 
     40= 1.2.1 = 
     41* Fixed bug when adding tasks without BuddyPress installed 
    3942 
    4043= 1.2 = 
     
    111114== Upgrade Notice == 
    112115 
     116= 1.2.1 = 
     117* Fixed bug when adding tasks without BuddyPress installed 
     118 
    113119= 1.2 = 
    114120* BuddyPress Group integration ( requires BP v1.5+ ) 
Note: See TracChangeset for help on using the changeset viewer.