Skip to content

Commit

Permalink
Merge pull request #4458 from atm-alexis/FIX_bad_pdf_refetch_erase_ho…
Browse files Browse the repository at this point in the history
…ok_modification

FIX line refetch incompatible with hook practice
  • Loading branch information
eldy committed Jan 22, 2016
2 parents cceeefb + 48d6745 commit a406334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/modules/contract/doc/pdf_strato.modules.php
Expand Up @@ -254,7 +254,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
{
$objectligne = $object->lines[$i];

$valide = $objectligne->id ? $objectligne->fetch($objectligne->id) : 0;
$valide = $objectligne->id ? 1 : 0;

if ($valide > 0 || $object->specimen)
{
Expand Down

0 comments on commit a406334

Please sign in to comment.