Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
services
T
t3o sites
typo3.org
typo3.org
Commits
5a79ad24
Commit
5a79ad24
authored
Jan 30, 2020
by
Thomas Löffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove entries from updated contributions which were created
parent
bb9900e0
Pipeline
#8425
passed with stages
in 4 minutes and 40 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
extensions/t3org_layout/Classes/Middleware/Contributions.php
extensions/t3org_layout/Classes/Middleware/Contributions.php
+3
-0
No files found.
extensions/t3org_layout/Classes/Middleware/Contributions.php
View file @
5a79ad24
...
...
@@ -79,6 +79,9 @@ class Contributions implements \Psr\Http\Server\MiddlewareInterface
$contributions
[
'statistics'
][
$type
]
+=
count
(
$data
);
$contributionType
=
$updated
?
'updated'
:
'created'
;
foreach
(
$data
as
$item
)
{
if
(
$updated
&&
$item
[
'created_at'
]
===
$item
[
'updated_at'
])
{
continue
;
}
if
(
!
isset
(
$contributions
[
'contributors'
][
$item
[
'author'
][
'id'
]]))
{
$contributions
[
'contributors'
][
$item
[
'author'
][
'id'
]]
=
[
'contributions'
=>
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment