pdf > comments > new comments : show email address if no name
This commit is contained in:
parent
6bffbc1707
commit
ea48094bc7
8 changed files with 52 additions and 43 deletions
|
|
@ -1 +1,5 @@
|
|||
title: Admin
|
||||
title: Admin
|
||||
|
||||
fields:
|
||||
notifications:
|
||||
type: hidden
|
||||
|
|
|
|||
|
|
@ -8,3 +8,5 @@ fields:
|
|||
type: pages
|
||||
max: 1
|
||||
query: page('clients').children
|
||||
notifications:
|
||||
type: hidden
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
title:
|
||||
title:
|
||||
fr: Chef·fe de projet
|
||||
en: Project Manager
|
||||
en: Project Manager
|
||||
|
||||
fields:
|
||||
notifications:
|
||||
type: hidden
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ return [
|
|||
|
||||
$comments[$data->targetPage][$data->id] = [
|
||||
'text' => $data->text,
|
||||
'username' => (string) $user->name(),
|
||||
'username' => $user->name()->isNotEmpty() ? (string) $user->name() : (string) $user->email(),
|
||||
'date' => (string) $data->date,
|
||||
];
|
||||
|
||||
|
|
@ -27,6 +27,6 @@ return [
|
|||
'comments' => $comments
|
||||
]);
|
||||
|
||||
return $comments;
|
||||
return getFileData($newFile);
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue