Skip to content

Commit

Permalink
Default external task priorities to normal.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Sep 26, 2014
1 parent ffe39ca commit 92e40bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nag/lib/Nag.php
Expand Up @@ -278,6 +278,9 @@ static public function listTasks(array $options = array())
try {
$newtasks = $registry->callByPackage($app, 'listAs', array('taskHash'));
foreach ($newtasks as $task) {
if (!isset($task['priority'])) {
$task['priority'] = 3;
}
$task['tasklist_id'] = '**EXTERNAL**';
$task['tasklist_name'] = $registry->get('name', $app);
$task = new Nag_Task(null, $task);
Expand Down

0 comments on commit 92e40bb

Please sign in to comment.