Merge pull request #14205 from Gecka-Apps/12.0-fix-extra-field-ordering

Fix extrafields ordering on PDFs
This commit is contained in:
Laurent Destailleur 2020-07-18 19:30:34 +02:00 committed by GitHub
commit cbc8187616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1296,7 +1296,7 @@ abstract class CommonDocGenerator
{
// Sort extrafields by rank
uasort($fields, function ($a, $b) {
return ($a->rank > $b->rank) ? -1 : 1;
return ($a->rank > $b->rank) ? 1 : -1;
});
// define some HTML content with style