Merge pull request #14205 from Gecka-Apps/12.0-fix-extra-field-ordering
Fix extrafields ordering on PDFs
This commit is contained in:
commit
cbc8187616
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user