Implicitly add an TimeEntry's weight when calling getValue()
refs #4190
This commit is contained in:
parent
34f25c6009
commit
103d43ea77
|
@ -136,11 +136,12 @@ class TimeEntry
|
|||
/**
|
||||
* Return the amount of events in this group
|
||||
*
|
||||
* @param bool $raw Whether to ignore the set weight
|
||||
* @return int
|
||||
*/
|
||||
public function getValue()
|
||||
public function getValue($raw = false)
|
||||
{
|
||||
return $this->value;
|
||||
return $raw ? $this->value : $this->value * $this->weight;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue