Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
form-processor
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
mattwire
form-processor
Commits
ff11e87b
Commit
ff11e87b
authored
5 years ago
by
jaapjansma
Browse files
Options
Downloads
Patches
Plain Diff
Fixed issue with caching and get options
parent
c9a4a990
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Civi/FormProcessor/API/FormProcessor.php
+10
-2
10 additions, 2 deletions
Civi/FormProcessor/API/FormProcessor.php
Civi/FormProcessor/API/FormProcessorDefaults.php
+5
-1
5 additions, 1 deletion
Civi/FormProcessor/API/FormProcessorDefaults.php
with
15 additions
and
3 deletions
Civi/FormProcessor/API/FormProcessor.php
+
10
−
2
View file @
ff11e87b
...
...
@@ -87,7 +87,11 @@
return
$cache
;
}
$formProcessor
=
self
::
getFormProcessor
(
$formProcessorName
);
try
{
$formProcessor
=
self
::
getFormProcessor
(
$formProcessorName
);
}
catch
(
\API_Exception
$e
)
{
return
;
}
// Process all inputs of the formprocessor.
foreach
(
$formProcessor
[
'inputs'
]
as
$input
)
{
...
...
@@ -352,7 +356,11 @@
}
// Find the form processor
$formProcessor
=
self
::
getFormProcessor
(
$form_processor_name
);
try
{
$formProcessor
=
self
::
getFormProcessor
(
$form_processor_name
);
}
catch
(
\API_Exception
$e
)
{
return
TRUE
;
}
// FInd the action
foreach
(
$formProcessor
[
'actions'
]
as
$action
)
{
if
(
$action
[
'name'
]
==
$action_name
)
{
...
...
This diff is collapsed.
Click to expand it.
Civi/FormProcessor/API/FormProcessorDefaults.php
+
5
−
1
View file @
ff11e87b
...
...
@@ -43,7 +43,11 @@ class FormProcessorDefaults extends FormProcessor implements API_ProviderInterfa
return
$cache
;
}
$formProcessor
=
self
::
getFormProcessor
(
$formProcessorName
);
try
{
$formProcessor
=
self
::
getFormProcessor
(
$formProcessorName
);
}
catch
(
\API_Exception
$e
)
{
return
;
}
// Process all inputs of the formprocessor.
foreach
(
$formProcessor
[
'default_data_inputs'
]
as
$input
)
{
...
...
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