Wrong link structure in calendar

This topic contains 2 reply and 3 voices, and was last updated by Nizam Uddin 10 years ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
April 1, 2014 at 3:16 am 17718
Nizam Uddin In the front end calendar, there is a bug with the links to Milestones. Links to To-dos work correctly because the link format is "www.mywebsite.com/project/?project_id=301..." Links to Milestones do not work because the link structure is wrong. Notice the "/calendar/" in "www.mywebsite.com/calendar/?project_id=301..." Can you please correct and let me know where the fix must be made in the code? Thanks!
April 1, 2014 at 6:05 am 17726
Mahi Mahi

Thank you Taylor for the bug report. I am forwarding this to our main developers to fix asap and get back to you with a quick solution.

April 1, 2014 at 12:32 pm 17764
Nizam Uddin Nizam Uddin

Hello Taylor
Just solved the problem, please wait for next release. If you don’t want to wait for next release then go to line number 191 in urls.php of Project manager frontend addon
and replace the following function..

  
function milestone_index( $url, $project_id ) {
        $page_id = cpm_get_option('project');
        $url = add_query_arg( array(
            'project_id' => $project_id,
            'tab' => 'milestone',
            'action' => 'index'
        ), $this->get_permalink( $page_id ) );
     return $url;
    }

Please don’t forget about Page Settings. Documentation is here http://docs.wedevs.com/frontend-page-settings/
Thank you

Viewing 2 Posts - 1 through 2 (of 2 total)