Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
achievements
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
achievements
Commits
650b81d1
Commit
650b81d1
authored
1 year ago
by
Matthew Grasmick
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3341331
: Undefined function and variable in "achievements_reset"
parent
c4e94e9b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
achievements.module
+2
-1
2 additions, 1 deletion
achievements.module
with
2 additions
and
1 deletion
achievements.module
+
2
−
1
View file @
650b81d1
...
...
@@ -357,9 +357,10 @@ function achievements_totals_user($uid = NULL) {
* The user to reset an achievement for (defaults to current user).
*/
function
achievements_reset
(
$achievement_id
,
$uid
=
NULL
)
{
if
(
achievements_
re
lock
(
$achievement_id
,
$uid
)){
if
(
achievements_lock
ed
(
$achievement_id
,
$uid
))
{
// Remove any storage associated with this achievement.
// This means ALL progress for this achievement will be reset!
$achievement
=
achievements_load
(
$achievement_id
);
achievements_storage_del
(
$achievement
->
id
(),
$uid
);
\Drupal
::
moduleHandler
()
->
invokeAll
(
'achievements_locked'
,
[
$achievement
,
$uid
]);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment