Skip to content

Commit

Permalink
Evarisk#378 [Class] fix: missing parameter for ODT
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jul 19, 2023
1 parent cf506b9 commit 44d171d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions class/dolisirhdocuments/certificatedocument.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
*/
class CertificateDocument extends SaturneDocuments
{
/**
* @var string Module name.
*/
public string $module = 'dolisirh';

/**
* @var string Element type of object.
*/
Expand All @@ -41,6 +46,6 @@ class CertificateDocument extends SaturneDocuments
*/
public function __construct(DoliDB $db)
{
parent::__construct($db);
parent::__construct($db, $this->module, $this->element);
}
}
}
9 changes: 7 additions & 2 deletions class/dolisirhdocuments/timesheetdocument.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
*/
class TimeSheetDocument extends SaturneDocuments
{
/**
* @var string Module name.
*/
public string $module = 'dolisirh';

/**
* @var string Element type of object.
*/
Expand All @@ -41,6 +46,6 @@ class TimeSheetDocument extends SaturneDocuments
*/
public function __construct(DoliDB $db)
{
parent::__construct($db);
parent::__construct($db, $this->module, $this->element);
}
}
}

0 comments on commit 44d171d

Please sign in to comment.