Skip to content

[BUGFIX] Fix typo 'heigth' -> 'height' in config in TcpdfWrapper #39

Description

@johfeu

Bug Report

                                                                                                                                                                                                            **Current Behavior**                                                                                                                                                                                          

Typo in Classes/Service/TcpdfWrapper.php line 133: The code uses heigth (typo) instead of height, causing an "Undefined array key 'heigth'" warning when rendering PDFs with header logos.

  if (!empty($config['height'])) {                                                                                                                                                                              
      $view->assign('heigth', $config['heigth']); // typo: heigth instead of height                                                                                                                             
  }

Expected behavior/output
The code should use the correct spelling height to access the configuration value without warnings.

  if (!empty($config['height'])) {                                                                                                                                                                              
      $view->assign('height', $config['height']);                                                                                                                                                               
  }                                                                                                                                                                                                     

##Environment

  • TYPO3 version(s): 13.4
  • cart-pdf version: main (commit 619b5db)
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions