Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee389cd
)
Rename ROLE_USER to User
author
Raphaël Gertz
<git@rapsys.eu>
Wed, 14 Oct 2020 02:02:23 +0000
(
04:02
+0200)
committer
Raphaël Gertz
<git@rapsys.eu>
Wed, 14 Oct 2020 02:06:07 +0000
(
04:06
+0200)
Enable users without group to fallback to this translated group title
Repository/UserRepository.php
patch
|
blob
|
history
diff --git
a/Repository/UserRepository.php
b/Repository/UserRepository.php
index cc51ea088d565510b1a753dfb8722afdeddabcd1..0d0ee4e45e2ff35c06e0da72be4922cf6f80219f 100644
(file)
--- a/
Repository/UserRepository.php
+++ b/
Repository/UserRepository.php
@@
-85,7
+85,7
@@
class UserRepository extends \Doctrine\ORM\EntityRepository {
//Process result
foreach($res as $data) {
//Get translated group
- $group = $translator->trans($data['g_title']?:'
ROLE_USER
');
+ $group = $translator->trans($data['g_title']?:'
User
');
//Get translated title
$title = $translator->trans($data['t_short']);
//Init group subarray