Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dataprocessor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
dataprocessor
Commits
c0d73dcf
Commit
c0d73dcf
authored
5 years ago
by
jaapjansma
Browse files
Options
Downloads
Patches
Plain Diff
#3 data processor returns a big error upon installation
parent
e630a100
No related branches found
Branches containing commit
Tags
1.72
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Civi/DataProcessor/Output/UIOutputHelper.php
+6
-0
6 additions, 0 deletions
Civi/DataProcessor/Output/UIOutputHelper.php
dataprocessor.php
+5
-1
5 additions, 1 deletion
dataprocessor.php
with
11 additions
and
1 deletion
Civi/DataProcessor/Output/UIOutputHelper.php
+
6
−
0
View file @
c0d73dcf
...
...
@@ -24,6 +24,12 @@ class UIOutputHelper {
*/
public
static
function
alterMenu
(
&
$items
)
{
$factory
=
dataprocessor_get_factory
();
// Check whether the factory exists. Usually just after
// installation the factory does not exists but then no
// outputs exists either. So we can safely return this function.
if
(
!
$factory
)
{
return
;
}
$sql
=
"
SELECT o.permission, p.id, p.title, o.configuration, o.type, o.id as output_id
...
...
This diff is collapsed.
Click to expand it.
dataprocessor.php
+
5
−
1
View file @
c0d73dcf
...
...
@@ -10,7 +10,11 @@ use \Symfony\Component\DependencyInjection\Definition;
* @return \Civi\DataProcessor\Factory
*/
function
dataprocessor_get_factory
()
{
return
\Civi
::
service
(
'data_processor_factory'
);
$container
=
\Civi
::
container
();
if
(
$container
->
has
(
'data_processor_factory'
))
{
return
\Civi
::
service
(
'data_processor_factory'
);
}
return
null
;
}
/**
...
...
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