From: Nik Okuntseff Date: Thu, 15 Feb 2018 21:37:29 +0000 (+0000) Subject: Removed COST_ON_REPORTS global setting as per issue #53. X-Git-Tag: timetracker_1.19-1~1118 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1bb418518633df9bda7d73235759b11e640cc81f;p=timetracker.git Removed COST_ON_REPORTS global setting as per issue #53. --- diff --git a/WEB-INF/config.php.dist b/WEB-INF/config.php.dist index ed00f3a5..bb193793 100644 --- a/WEB-INF/config.php.dist +++ b/WEB-INF/config.php.dist @@ -70,11 +70,6 @@ define('APP_NAME', ''); // define('OLD_PASSWORDS', true); -// COST_ON_REPORTS - defines the availability of the Cost field on the Reports page. -// -define('COST_ON_REPORTS', true); - - // WEEKEND_START_DAY // // This option defines which days are highlighted with weekend color. diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 20aebdb0..4558949f 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- -{if ((($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex')) && defined('COST_ON_REPORTS') && isTrue($smarty.const.COST_ON_REPORTS))} +{if (($user->canManageTeam() || $user->isClient()) || $user->isPluginEnabled('ex'))} {else} diff --git a/reports.php b/reports.php index 80e1e903..27a72244 100644 --- a/reports.php +++ b/reports.php @@ -197,8 +197,7 @@ if ((TYPE_START_FINISH == $user->record_type) || (TYPE_ALL == $user->record_type } $form->addInput(array('type'=>'checkbox','name'=>'chduration')); $form->addInput(array('type'=>'checkbox','name'=>'chnote')); -if (defined('COST_ON_REPORTS') && isTrue(COST_ON_REPORTS)) - $form->addInput(array('type'=>'checkbox','name'=>'chcost')); +$form->addInput(array('type'=>'checkbox','name'=>'chcost')); // If we have a custom field - add a checkbox for it. if ($custom_fields && $custom_fields->fields[0]) $form->addInput(array('type'=>'checkbox','name'=>'chcf_1'));
 Anuko Time Tracker 1.17.21.3995 | Copyright © Anuko | +  Anuko Time Tracker 1.17.21.3996 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index 88511512..8e7daf09 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -261,7 +261,7 @@ function handleCheckboxes() { {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}{/if} {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}{/if}