Commit 7c79fbc5 authored by Jean-Paul Saman's avatar Jean-Paul Saman

On timesheet status change do not rewrite the project hours.

parent 572cae8f
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
*/ */
// include the powerful parent class that we want to extend for timesheet // include the powerful parent class that we want to extend for timesheet
// use the dPFramework for easy inclusion of this class here // use the dPFramework for easy inclusion of this class here
require_once( $AppUI->getSystemClass('dp') ); require_once( $AppUI->getSystemClass('dp') );
/** /**
...@@ -196,9 +196,6 @@ class CTimesheet extends CDpObject { ...@@ -196,9 +196,6 @@ class CTimesheet extends CDpObject {
if (!$q->exec()) { if (!$q->exec()) {
return db_error(); return db_error();
} }
// Why is this needed ??
/* $this->project_purge();
$this->project_store();*/
} }
function change_period($period) function change_period($period)
...@@ -212,6 +209,8 @@ class CTimesheet extends CDpObject { ...@@ -212,6 +209,8 @@ class CTimesheet extends CDpObject {
if (!$q->exec()) { if (!$q->exec()) {
return db_error(); return db_error();
} }
$this->project_purge();
$this->project_store();
} }
} }
?> ?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment