Skip to content

Commit

Permalink
Move option to where it is actually used
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Oct 20, 2023
1 parent b77bf75 commit 22b5178
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/org/openpsa/expenses/config/config.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@

/* The schema database to use */
'schemadb_hours' => 'file:/org/openpsa/expenses/config/schemadb_default_hours.inc',

'default_minimum_time_slot' => 0.25,
2 changes: 1 addition & 1 deletion lib/org/openpsa/expenses/hour/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function modify_hours_by_time_slot()
$task = new org_openpsa_projects_task_dba($this->task);
$time_slot = (float)$task->get_parameter('org.openpsa.projects.projectbroker', 'minimum_slot');
if (empty($time_slot)) {
$time_slot = (float) midcom_baseclasses_components_configuration::get('org.openpsa.projects', 'config')->get('default_minimum_time_slot');
$time_slot = (float) midcom_baseclasses_components_configuration::get('org.openpsa.expenses', 'config')->get('default_minimum_time_slot');
if (empty($time_slot)) {
$time_slot = 1;
}
Expand Down
2 changes: 0 additions & 2 deletions lib/org/openpsa/projects/config/config.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
*/
'schemadb_task' => 'file:/org/openpsa/projects/config/schemadb_default_task.inc',
'schemadb_project' => 'file:/org/openpsa/projects/config/schemadb_default_project.inc',

'default_minimum_time_slot' => 0.25,

0 comments on commit 22b5178

Please sign in to comment.