Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW #30044 #30071

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open

NEW #30044 #30071

wants to merge 15 commits into from

Conversation

zephyriony
Copy link
Contributor

FIX #30044

@eldy eldy changed the title FIX #30044 NEW #30044 Jun 19, 2024
@@ -2500,13 +2500,7 @@ function pdf_getLinkedObjects(&$object, $outputlangs)
} elseif ($objecttype == 'commande' || $objecttype == 'supplier_order') {
$outputlangs->load('orders');

if (count($objects) > 1 && count($objects) <= (getDolGlobalInt("MAXREFONDOC") ? getDolGlobalInt("MAXREFONDOC") : 10)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing generation from pdf_getLinkedObjects() to replace it by public_note seems a good idea.
However, the option getDolGlobalInt("MAXREFONDOC") must still be used to limit size of the public_note.

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Jun 19, 2024
$objecttmp->note_public = dol_concatdesc($objecttmp->note_public, $langs->transnoentities($cmd->ref).(empty($cmd->ref_client) ? '' : ' ('.$cmd->ref_client.')'));
$objecttmp->update($user);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid such errors, you should think to activate the "pre-commit" hooks in your development environment:
See https://wiki.dolibarr.org/index.php?title=Environment_and_development_tools#Install_Pre-commit_githook

@eldy eldy added PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do) and removed Discussion Some questions or discussions are opened and wait answers of author or other people to be processed labels Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do)
Projects
None yet
2 participants