Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wpct ERP Forms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
codeccoop
WordPress
plugins
Wpct ERP Forms
Commits
880967ea
Commit
880967ea
authored
4 months ago
by
Lucas García
Browse files
Options
Downloads
Patches
Plain Diff
fix: wpcft form fields filter and admin ui bugs
parent
13378460
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
includes/integrations/wpcf7/class-integration.php
+11
-3
11 additions, 3 deletions
includes/integrations/wpcf7/class-integration.php
src/GeneralSettings/Backends/Backend.jsx
+2
-2
2 additions, 2 deletions
src/GeneralSettings/Backends/Backend.jsx
with
13 additions
and
5 deletions
includes/integrations/wpcf7/class-integration.php
+
11
−
3
View file @
880967ea
...
@@ -142,9 +142,17 @@ class Integration extends BaseIntegration
...
@@ -142,9 +142,17 @@ class Integration extends BaseIntegration
null
,
null
,
$form_id
$form_id
),
),
'fields'
=>
array_map
(
function
(
$field
)
{
'fields'
=>
array_map
(
return
$this
->
serialize_field
(
$field
);
function
(
$field
)
{
},
$form
->
scan_form_tags
()),
return
$this
->
serialize_field
(
$field
);
},
array_values
(
array_filter
(
$form
->
scan_form_tags
(),
function
(
$tag
)
{
return
$tag
->
basetype
!==
'response'
&&
$tag
->
basetype
!==
'submit'
;
})
)
),
];
];
}
}
...
...
This diff is collapsed.
Click to expand it.
src/GeneralSettings/Backends/Backend.jsx
+
2
−
2
View file @
880967ea
...
@@ -27,7 +27,7 @@ function NewBackend({ add }) {
...
@@ -27,7 +27,7 @@ function NewBackend({ add }) {
const
onClick
=
()
=>
add
({
name
,
base_url
:
baseUrl
,
headers
:
[]
});
const
onClick
=
()
=>
add
({
name
,
base_url
:
baseUrl
,
headers
:
[]
});
const
disabled
=
!
(
name
&&
baseUrl
&&
!
disabled
);
const
disabled
=
!
(
name
&&
baseUrl
&&
!
nameConflict
);
return
(
return
(
<
div
<
div
...
@@ -51,7 +51,7 @@ function NewBackend({ add }) {
...
@@ -51,7 +51,7 @@ function NewBackend({ add }) {
:
""
:
""
}
}
value
=
{
name
}
value
=
{
name
}
onChange
=
{
s
etName
}
onChange
=
{
handleS
etName
}
__nextHasNoMarginBottom
__nextHasNoMarginBottom
/>
/>
<
TextControl
<
TextControl
...
...
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