Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Task: Due Date and Priority not shown. #92

Open
ruudvh opened this issue Jun 24, 2013 · 0 comments
Open

Single Task: Due Date and Priority not shown. #92

ruudvh opened this issue Jun 24, 2013 · 0 comments
Labels
Milestone

Comments

@ruudvh
Copy link

ruudvh commented Jun 24, 2013

When viewing a single task, the due date and priority is not shown.

The issue is here:
(Around line 15 in content-single-task.php)

<?php if ( $due_date = cp_get_the_task_due_date() ) {
  echo '<div>' . __( 'Due date: ', 'collabpress' ) . $due_date . '</div>';
} ?>
<?php if ( ( $priority = cp_get_the_task_priority() ) != 'None' ) {
   echo '<div>' . __( 'Priority: ', 'collabpress' ) . $priority . '</div>';
} ?>

The function cp_get_the_task_due_date() and cp_get_the_tak_priority() seem not to be functioning properly.

To fix it, replace it with the following:

<?php if ( $due_date = cp_get_task_due_date_mysql( cp_get_the_task_ID() ) ) {
   echo '<div>' . __( 'Due date: ', 'collabpress' ) . $due_date . '</div>';
} ?>
<?php if ( ( $priority = cp_get_task_priority( cp_get_the_task_ID() ) ) != 'None' ) {
   echo '<div>' . __( 'Priority: ', 'collabpress' ) . $priority . '</div>';
} ?>

The only thing it does is skip a step. The functions cp_get_the_task_due_date() and cp_get_the_tak_priority() actually call the functions cp_get_task_due_date_mysql() and cp_get_task_priority().

Please note this is a quick fix, and might not be the ideal solution.

@williamsba williamsba added this to the 2.0 milestone Dec 22, 2014
@williamsba williamsba added the Bug label Dec 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants