Fixed display errors in reports of expenses
This commit is contained in:
parent
527efa9b29
commit
7d5864b347
8 changed files with 51 additions and 40 deletions
|
@ -415,10 +415,10 @@ function stormtimetracking_list_form_report_submit($form, &$form_state) {
|
|||
function stormtimetracking_list_report($report, $language) {
|
||||
$timetrackings = array();
|
||||
|
||||
$s = $_SESSION['stormtimetracking_list_filter']['sql'];
|
||||
$sql = $_SESSION['stormtimetracking_list_filter']['sql'];
|
||||
$args = $_SESSION['stormtimetracking_list_filter']['args'];
|
||||
|
||||
$r = db_query($s, $args);
|
||||
$r = db_query($sql, $args);
|
||||
while ($t = db_fetch_object($r)) {
|
||||
$timetracking = node_load($t->nid);
|
||||
$timetrackings[] = $timetracking;
|
||||
|
|
|
@ -168,6 +168,7 @@ function theme_stormtimetracking_list_report($report, $language, $timetrackings)
|
|||
t('Date', array(), $language),
|
||||
t('Billing duration (hours)', array(), $language));
|
||||
$total_billing_duration = 0;
|
||||
$rows = array();
|
||||
foreach ($timetrackings as $timetracking) {
|
||||
$rows[] = array(
|
||||
check_plain($timetracking->organization_title),
|
||||
|
|
Reference in a new issue