Skip to content

Commit

Permalink
Fix: pagination into belugo template
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 5, 2018
1 parent 775085e commit 72f6b29
Show file tree
Hide file tree
Showing 2 changed files with 328 additions and 176 deletions.
12 changes: 5 additions & 7 deletions htdocs/core/modules/project/doc/pdf_baleine.modules.php
Expand Up @@ -172,10 +172,10 @@ function write_file($object,$outputlangs)
$task = new Task($this->db);
$tasksarray = $task->getTasksArray(0,0,$object->id);

if (! $object->id > 0) // Special case when used with object = specimen, we may return all lines
{
$tasksarray=array_slice($tasksarray, 0, min(5, count($tasksarray)));
}
if (! $object->id > 0) // Special case when used with object = specimen, we may return all lines
{
$tasksarray=array_slice($tasksarray, 0, min(5, count($tasksarray)));
}

$object->lines=$tasksarray;
$nblignes=count($object->lines);
Expand Down Expand Up @@ -463,7 +463,7 @@ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop=0,

$heightoftitleline = 10;

$default_font_size = pdf_getPDFFontSize($outputlangs);
$default_font_size = pdf_getPDFFontSize($outputlangs);

$pdf->SetDrawColor(128,128,128);

Expand Down Expand Up @@ -586,7 +586,6 @@ function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
}
}
*/

}

/**
Expand All @@ -606,4 +605,3 @@ function _pagefoot(&$pdf,$object,$outputlangs,$hidefreetext=0)
}

}

0 comments on commit 72f6b29

Please sign in to comment.