commit
942490865b
@ -6,6 +6,7 @@
|
|||||||
* Copyright (C) 2016 Francis Appels <francis.appels@yahoo.com>
|
* Copyright (C) 2016 Francis Appels <francis.appels@yahoo.com>
|
||||||
* Copyright (C) 2021 Noé Cendrier <noe.cendrier@altairis.fr>
|
* Copyright (C) 2021 Noé Cendrier <noe.cendrier@altairis.fr>
|
||||||
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
|
||||||
|
* Copyright (C) 2022 Charlene Benke <charlene@patas-monkey.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -679,6 +680,8 @@ if ($action == 'create') {
|
|||||||
if ($resql) {
|
if ($resql) {
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$sameunits = true;
|
||||||
|
|
||||||
while ($i < $num) {
|
while ($i < $num) {
|
||||||
$objp = $db->fetch_object($resql);
|
$objp = $db->fetch_object($resql);
|
||||||
|
|
||||||
@ -960,7 +963,7 @@ if ($action != 'create' && $action != 'edit' && $action != 'delete') {
|
|||||||
$delallowed = $usercancreate;
|
$delallowed = $usercancreate;
|
||||||
$modulepart = 'stock';
|
$modulepart = 'stock';
|
||||||
|
|
||||||
print $formfile->showdocuments($modulepart, $objectref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 0, 0, 0, 28, 0, '', 0, '', $object->default_lang, '', $object);
|
print $formfile->showdocuments($modulepart, $objectref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 0, 0, 0, 28, 0, '', 0, '', '', '', $object);
|
||||||
$somethingshown = $formfile->numoffiles;
|
$somethingshown = $formfile->numoffiles;
|
||||||
|
|
||||||
print '</div><div class="fichehalfright">';
|
print '</div><div class="fichehalfright">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user