Skip to content

Commit

Permalink
Merge pull request #15957 from Godmartinz/fix-checkout-notif-parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe authored Dec 12, 2024
2 parents a7e6b8e + 3264149 commit 4bd6c21
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Listeners/CheckoutableListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private function getCheckoutMailType($event, $acceptance){
];
$mailable= $lookup[get_class($event->checkoutable)];

return new $mailable($event->checkoutable, $event->checkedOutTo, $event->checkedOutBy, $event->note, $acceptance);
return new $mailable($event->checkoutable, $event->checkedOutTo, $event->checkedOutBy, $acceptance, $event->note);

}
private function getCheckinMailType($event){
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/CheckoutAccessoryMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CheckoutAccessoryMail extends Mailable
/**
* Create a new message instance.
*/
public function __construct(Accessory $accessory, $checkedOutTo, User $checkedOutBy,$note, $acceptance)
public function __construct(Accessory $accessory, $checkedOutTo, User $checkedOutBy, $acceptance, $note)
{
$this->item = $accessory;
$this->admin = $checkedOutBy;
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/CheckoutAssetMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CheckoutAssetMail extends Mailable
/**
* Create a new message instance.
*/
public function __construct(Asset $asset, $checkedOutTo, User $checkedOutBy, $note, $acceptance)
public function __construct(Asset $asset, $checkedOutTo, User $checkedOutBy, $acceptance, $note)
{
$this->item = $asset;
$this->admin = $checkedOutBy;
Expand Down
1 change: 0 additions & 1 deletion app/Mail/CheckoutLicenseMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public function __construct(LicenseSeat $licenseSeat, $checkedOutTo, User $check
$this->note = $note;
$this->target = $checkedOutTo;
$this->acceptance = $acceptance;

$this->settings = Setting::getSettings();
}

Expand Down

0 comments on commit 4bd6c21

Please sign in to comment.