Make Userfields reorderable (closes #1134)

This commit is contained in:
Bernd Bestel
2020-11-17 20:12:45 +01:00
parent 887526c727
commit 6270f39688
6 changed files with 44 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ class UserfieldsService extends BaseService
throw new \Exception('Entity does not exist or is not exposed');
}
return $this->getDatabase()->userfields()->where('entity', $entity)->orderBy('name', 'COLLATE NOCASE')->fetchAll();
return $this->getDatabase()->userfields()->where('entity', $entity)->orderBy('sort_number')->orderBy('name', 'COLLATE NOCASE')->fetchAll();
}
public function GetValues($entity, $objectId)