Merge pull request 'Added created_by value if not exist' (#374) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Reviewed-on: #374
This commit was merged in pull request #374.
This commit is contained in:
@@ -209,6 +209,11 @@ class ProcessOrderImporter extends Importer
|
|||||||
// $warnMsg[] = 'User not found';
|
// $warnMsg[] = 'User not found';
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
if (! $createdBy) {
|
||||||
|
$createdBy = Filament::auth()->user()->name;
|
||||||
|
$updatedBy = Filament::auth()->user()->name;
|
||||||
|
}
|
||||||
|
|
||||||
if (! empty($warnMsg)) {
|
if (! empty($warnMsg)) {
|
||||||
throw new RowImportFailedException(implode(', ', $warnMsg));
|
throw new RowImportFailedException(implode(', ', $warnMsg));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user