diff --git a/app/View/Components/Documents/Index/Information.php b/app/View/Components/Documents/Index/Information.php index 3dc331363..b270c6a45 100644 --- a/app/View/Components/Documents/Index/Information.php +++ b/app/View/Components/Documents/Index/Information.php @@ -31,14 +31,14 @@ class Information extends Component * @return void */ public function __construct( - string $id = '', $document, bool $hideShow = false, string $showRoute = '', string $showDocumentRoute = '', string $placement = '' + $document, bool $hideShow = false, string $showRoute = '', string $showDocumentRoute = '', string $placement = '', string $id = '' ) { - $this->id = (! empty($id)) ? $id : 'tooltip-information-' . $document->id; $this->document = $document; $this->hideShow = $hideShow; $this->showRoute = $this->getShowRoute($document->contact->type, $showRoute); $this->showDocumentRoute = $this->getShowRoute($document->type, $showDocumentRoute); $this->placement = (! empty($placement)) ? $placement : 'left'; + $this->id = (! empty($id)) ? $id : 'tooltip-information-' . $document->id; } /**