diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cab9f5e..ad8944e 100755 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,9 +12,7 @@ If you have a good idea for improvement feel free to create a new issue with all ### Issues -Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the `Project.md` file in the `Docs` repository. - -The issue information can be used to provide additional information such as priority, difficulty and type. For your first issue try to find a issue marked `[d:first]` or `[d:beginner]`. +Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the code marked with `@todo` or in the [PROJECT.md](https://github.com/Orange-Management/Docs/blob/master/Project/PROJECT.md) file. ### Code Style diff --git a/Models/NullSessionElement.php b/Models/NullSessionElement.php index 4ff9378..150019a 100755 --- a/Models/NullSessionElement.php +++ b/Models/NullSessionElement.php @@ -24,7 +24,7 @@ namespace Modules\HumanResourceTimeRecording\Models; */ final class NullSessionElement extends SessionElement { - /** + /** * Constructor * * @param int $id Model id diff --git a/Models/SessionElement.php b/Models/SessionElement.php index d05cbdd..3c468b7 100755 --- a/Models/SessionElement.php +++ b/Models/SessionElement.php @@ -61,8 +61,8 @@ class SessionElement implements \JsonSerializable, ArrayableInterface /** * Constructor. * - * @param Session $session Session id - * @param null|\DateTime $datetime DateTime of the session element + * @param Session $session Session id + * @param null|\DateTime $datetime DateTime of the session element * * @since 1.0.0 */ @@ -116,10 +116,10 @@ class SessionElement implements \JsonSerializable, ArrayableInterface public function toArray() : array { return [ - 'id' => $this->id, - 'status' => $this->status, + 'id' => $this->id, + 'status' => $this->status, 'datetime' => $this->datetime, - 'session' => $this->session, + 'session' => $this->session, ]; } diff --git a/Models/SessionMapper.php b/Models/SessionMapper.php index 59aca33..7d45021 100755 --- a/Models/SessionMapper.php +++ b/Models/SessionMapper.php @@ -143,7 +143,7 @@ final class SessionMapper extends DataMapperAbstract $dt = new SmartDateTime('now'); $dt->smartModify(0, 0, -32); - $depth = 2; + $depth = 3; $query = self::getQuery(); $query->where(self::$table . '_d' . $depth . '.hr_timerecording_session_employee', '=', $employee) ->andWhere(self::$table . '_d' . $depth . '.hr_timerecording_session_start', '>', $dt) diff --git a/Theme/Backend/private-session.tpl.php b/Theme/Backend/private-session.tpl.php index 2bb6765..4467a94 100755 --- a/Theme/Backend/private-session.tpl.php +++ b/Theme/Backend/private-session.tpl.php @@ -22,7 +22,7 @@ echo $this->getData('nav')->render(); ?>
| = $this->getHtml('Status'); ?> @@ -32,8 +32,8 @@ echo $this->getData('nav')->render(); ?> | ||||
| = $this->getHtml('CS' . $element->getStatus()); ?> - | = $element->getDatetime()->format('H:i:s'); ?> - | = $element->getDatetime()->format('Y-m-d'); ?> + | = $element->datetime->format('H:i:s'); ?> + | = $element->datetime->format('Y-m-d'); ?> |