Skip to content

Commit

Permalink
ManufacturerController: don't distort manufacturer description.
Browse files Browse the repository at this point in the history
While a manufacturer's description is expected to be HTML (and
gets edited using TinyMCE), it was recalculated like this, from:

  <p>line 1</p>
  <p>line 2</p>
  <p>line 3</p>

to:

  <p>line 1</p>
  <br>
  <p>line 2</p>
  <br>
  <p>line 3</p>
  • Loading branch information
Traumflug committed Oct 20, 2019
1 parent 8ed0038 commit cba1528
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion controllers/front/ManufacturerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public function initContent()
*/
protected function assignOne()
{
$this->manufacturer->description = Tools::nl2br(trim($this->manufacturer->description));
$nbProducts = $this->manufacturer->getProducts($this->manufacturer->id, null, null, null, $this->orderBy, $this->orderWay, true);
$this->pagination((int) $nbProducts);

Expand Down

0 comments on commit cba1528

Please sign in to comment.