]> git.agnieray.net Git - galette.git/commitdiff
Fix attendence sheet call; closes #1553
authorJohan Cwiklinski <johan@x-tnd.be>
Wed, 5 May 2021 11:58:27 +0000 (13:58 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Wed, 5 May 2021 11:58:27 +0000 (13:58 +0200)
galette/lib/Galette/IO/PdfAttendanceSheet.php

index b300f76c1c8c18673751cba73f0aa5d1531fc950..7e85ef11e4c0ad561b79d37c88e18bf7edbacd04 100644 (file)
@@ -59,6 +59,7 @@ use Analog\Analog;
 class PdfAttendanceSheet extends Pdf
 {
     public const SHEET_FONT = self::FONT_SIZE - 2;
+    public const ATT_SHEET_MODEL = 100;
 
     public $doc_title = null;
     public $sheet_title = null;
@@ -102,7 +103,7 @@ class PdfAttendanceSheet extends Pdf
     public function __construct(Db $zdb, Preferences $prefs, $data = [])
     {
         $this->filename = __('attendance_sheet') . '.pdf';
-        $class = PdfModel::getTypeClass(__CLASS__);
+        $class = PdfModel::getTypeClass(self::ATT_SHEET_MODEL);
         $model = new $class($zdb, $prefs);
 
         // Set document and model information