-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
base: develop
Are you sure you want to change the base?
NEW #30044 #30071
Conversation
@@ -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)) { |
There was a problem hiding this comment.
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.
$objecttmp->note_public = dol_concatdesc($objecttmp->note_public, $langs->transnoentities($cmd->ref).(empty($cmd->ref_client) ? '' : ' ('.$cmd->ref_client.')')); | ||
$objecttmp->update($user); | ||
} | ||
|
There was a problem hiding this comment.
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
FIX #30044