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
|
|
@ -6,31 +6,4 @@ Uuid: s0lNtRA0Z7ybTCWG
|
|||
|
||||
----
|
||||
|
||||
Template: document
|
||||
|
||||
----
|
||||
|
||||
Comments:
|
||||
|
||||
1:
|
||||
m2lmqu2u:
|
||||
text: test
|
||||
username: Adrien Payet
|
||||
date: 2024-10-23T10:46:08+02:00
|
||||
m2lo4obv:
|
||||
text: nouveau commentaire
|
||||
username: Adrien Payet
|
||||
date: 2024-10-23T11:24:53+02:00
|
||||
m2lo6ckw:
|
||||
text: Encore un autre commentaire
|
||||
username: Adrien Payet
|
||||
date: 2024-10-23T11:26:11+02:00
|
||||
2:
|
||||
m2loaj2f:
|
||||
text: Autre commentaire
|
||||
username: Adrien Payet
|
||||
date: 2024-10-23T11:29:26+02:00
|
||||
m2loam7s:
|
||||
text: Autre commentaire
|
||||
username: Adrien Payet
|
||||
date: 2024-10-23T11:29:30+02:00
|
||||
Template: document
|
||||
|
|
@ -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