Fix extrafields ordering on PDFs

This commit is contained in:
Laurent Dinclaux 2020-07-10 00:51:41 +11:00
parent f756864670
commit 6ed2ae188e

View File

@ -1296,7 +1296,7 @@ abstract class CommonDocGenerator
{ {
// Sort extrafields by rank // Sort extrafields by rank
uasort($fields, function ($a, $b) { 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 // define some HTML content with style