[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/themes/drupal5/oxygen
From: Niels van Mourik <niels () shodan ! nl>
Date: 2007-02-28 22:24:28
Message-ID: 1172701468.230459.22874.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 638131 by nielsvm:
Tried to partially fix the bug when "completed" is checked on task edit pages. \
Unfortunately this is a Drupal bug, that forces us to change Drupal's tasks module.
M +10 -2 user_profile.tpl.php
--- trunk/www/themes/drupal5/oxygen/user_profile.tpl.php #638130:638131
@@ -62,7 +62,11 @@
$task = node_load(array('nid' => $row2->nid, 'type' => 'tasks'));
$task = node_prepare($task);
- $progress .= progressBar($row2->field_progress_value, "", true);
+ if ($row2->field_completed_value == "0000-00-00") {
+ $progress .= progressBar(100, "", true);
+ } else {
+ $progress .= progressBar($row2->field_progress_value, "", true);
+ }
//Find if there is an assigned user and display
if($row2->name == ''){
@@ -157,7 +161,11 @@
$task = node_load(array('nid' => $row->nid, 'type' => 'tasks'));
$task = node_prepare($task);
- $progress .= progressBar($row->field_progress_value, "", true);
+ if ($row->field_completed_value == "0000-00-00") {
+ $progress .= progressBar(100, "", true);
+ } else {
+ $progress .= progressBar($row->field_progress_value, "", true);
+ }
//Find if there is an assigned user and display
if($row->name == ''){
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic