Skip to content

Commit

Permalink
Correction fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Algoud committed Nov 27, 2014
1 parent d588f8f commit b6845c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions class/actions_subtotal.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,15 +452,15 @@ function pdf_add_total(&$pdf,&$object, &$line, $label, $description,$posx, $posy
*/
function pdf_add_title(&$pdf,&$object, &$line, $label, $description,$posx, $posy, $w, $h) {

global $db;
global $db,$conf;

$pdf->SetXY ($posx, $posy);

$hideInnerLines = (int)isset($_REQUEST['hideInnerLines']);
if($hideInnerLines) {

if($line->qty==1)$pdf->SetFont('', 'BU', 9);
else $pdf->SetFont('', dolibarr_get_const($db, "SUBTOTAL_STYLE_TITRES_SI_LIGNES_CACHEES"), 9);
else $pdf->SetFont('', $conf->global->SUBTOTAL_STYLE_TITRES_SI_LIGNES_CACHEES, 9);

}
else {
Expand Down
2 changes: 1 addition & 1 deletion core/modules/modSubtotal.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct($db)
// (where XXX is value of numeric property 'numero' of module)
$this->description = "Module permettant l'ajout de sous-totaux et sous-totaux intermédiaires et le déplacement d'une ligne aisée de l'un dans l'autre";
// Possible values for version are: 'development', 'experimental' or version
$this->version = '1.4.3';
$this->version = '1.4.5';
// Key used in llx_const table to save module status enabled/disabled
// (where MYMODULE is value of property name of module in uppercase)
$this->const_name = 'MAIN_MODULE_' . strtoupper($this->name);
Expand Down

0 comments on commit b6845c0

Please sign in to comment.