Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
project_browser
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
project_browser
Merge requests
!18
Issue
#3250413
: Fix query that crashes the project updates
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Issue
#3250413
: Fix query that crashes the project updates
issue/project_browser-3250413:3250413-fix-query-that
into
1.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Issue #3250413: Fix query that crashes the project updates
Ben Mullins
requested to merge
issue/project_browser-3250413:3250413-fix-query-that
into
1.0.x
Nov 19, 2021
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
1.0.x
version 1
b2b9b052
Nov 19, 2021
1.0.x (base)
and
latest version
latest version
b2b9b052
1 commit,
Nov 19, 2021
version 1
b2b9b052
1 commit,
Nov 19, 2021
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/DrupalOrg/DrupalOrgClient.php
+
4
−
3
View file @ b2b9b052
Edit in single-file editor
Open in Web IDE
Show full file
@@ -242,9 +242,10 @@ class DrupalOrgClient {
'project_data'
=>
serialize
(
$project_to_update
),
];
$result
=
$connection
->
query
(
"SELECT nid FROM
{
project_browser_projects
}
WHERE nid = :nid"
,
[
':nid'
=>
$project_to_update
[
'nid'
],
])
->
execute
();
$result
=
$connection
->
select
(
'project_browser_projects'
,
'pbp'
)
->
fields
(
'pbp'
)
->
condition
(
'pbp.nid'
,
$project_to_update
[
'nid'
])
->
execute
();
if
(
!
empty
(
$result
->
fetchAll
()))
{
$connection
->
update
(
'project_browser_projects'
)
->
fields
(
$new_values
)
Loading