Skip to content

Commit 743d340

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 3d1398a + a5c7b8f commit 743d340

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

app/Console/Commands/SendAcceptanceReminder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SendAcceptanceReminder extends Command
3131
*
3232
* @var string
3333
*/
34-
protected $description = 'This will resend users with unaccepted assets a reminder to accept or decline them.';
34+
protected $description = 'This will resend users with unaccepted items a reminder to accept or decline them.';
3535

3636
/**
3737
* Create a new command instance.

app/Http/Controllers/ReportsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ public function sentAssetAcceptanceReminder(Request $request) : RedirectResponse
11801180
$acceptance = $query->find($id);
11811181
if (!$acceptance) {
11821182
Log::debug('No pending acceptances');
1183-
// Redirect to the unaccepted assets report page with error
1183+
// Redirect to the unaccepted items report page with error
11841184
return redirect()->route('reports/unaccepted_assets')->with('error', trans('general.bad_data'));
11851185
}
11861186
$item = $acceptance->checkoutable;

app/Models/Checkoutable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function fromAcceptance(CheckoutAcceptance $unaccepted): self
2626
$acceptance = $unaccepted;
2727

2828
$assignee = $acceptance->assignedTo;
29-
$company = optional($unaccepted_row->company)->present()?->nameUrl() ?? '';
29+
$company = $unaccepted_row->company ? optional($unaccepted_row->company)->present()->nameUrl() : '';
3030
$category = $model = $name = $tag = '';
3131
$type = $acceptance->checkoutable_item_type ?? '';
3232

resources/lang/en-US/general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
'declined' => 'declined',
328328
'declined_note' => 'Declined Notes',
329329
'unassigned' => 'Unassigned',
330-
'unaccepted_asset_report' => 'Unaccepted Assets',
330+
'unaccepted_asset_report' => 'Unaccepted Items',
331331
'users' => 'Users',
332332
'viewall' => 'View All',
333333
'viewassets' => 'View Assigned Items',

resources/lang/en-US/mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
'upcoming-audits_click' => 'This email may not contain the full list so as not to exceed email size limits. Click on the button below to view all assets due for audit.',
105105
'user' => 'User',
106106
'username' => 'Username',
107-
'unaccepted_asset_reminder' => 'Reminder: You have Unaccepted Assets.',
107+
'unaccepted_asset_reminder' => 'Reminder: You have Unaccepted Items',
108108
'welcome' => 'Welcome :name',
109109
'welcome_to' => 'Welcome to :web!',
110110
'your_assets' => 'View Your Assets',

tests/Unit/Mail/CheckoutAssetMailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function () {
4545
'asset' => Asset::factory()->requiresAcceptance()->create(),
4646
'acceptance' => CheckoutAcceptance::factory()->create(),
4747
'first_time_sending' => false,
48-
'expected_subject' => 'Reminder: You have Unaccepted Assets.',
48+
'expected_subject' => 'Reminder: You have Unaccepted Items',
4949
'expected_opening' => 'An item was recently checked out under your name that requires acceptance, details are below.'
5050
];
5151
}

0 commit comments

Comments
 (0)