mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-11-05 01:22:14 +00:00
Keep QR batch result numbers isolated per file
This commit is contained in:
1 parent
289eea396e
commit
fa86adc1d2
1 file changed
+2
-1
@@ -214,6 +214,7 @@ function bratonien_tools_customer_qr_process_uploads($year, array $files, array
|
|||||||
foreach ($items as $index => $file)
|
foreach ($items as $index => $file)
|
||||||
{
|
{
|
||||||
$display_name = trim((string)($file['name'] ?? ''));
|
$display_name = trim((string)($file['name'] ?? ''));
|
||||||
|
$number = '';
|
||||||
if ($display_name === '')
|
if ($display_name === '')
|
||||||
{
|
{
|
||||||
$display_name = 'Datei '.($index + 1);
|
$display_name = 'Datei '.($index + 1);
|
||||||
@@ -302,7 +303,7 @@ function bratonien_tools_customer_qr_process_uploads($year, array $files, array
|
|||||||
'status' => 'error',
|
'status' => 'error',
|
||||||
'file' => $display_name,
|
'file' => $display_name,
|
||||||
'year' => $year,
|
'year' => $year,
|
||||||
'number' => isset($number) ? $number : '',
|
'number' => $number,
|
||||||
'message' => $e->getMessage(),
|
'message' => $e->getMessage(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user