Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
drupal.org
feeds
Commits
13837134
Commit
13837134
authored
11 years ago
by
Chris Leppanen
Browse files
Options
Downloads
Patches
Plain Diff
Issue #1984962 by mvd81NL, redsd, twistor: Fixed Use a 0 as mapping source.
parent
ddee3f9f
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
feeds_ui/feeds_ui.admin.inc
+3
-3
3 additions, 3 deletions
feeds_ui/feeds_ui.admin.inc
with
3 additions
and
3 deletions
feeds_ui/feeds_ui.admin.inc
+
3
−
3
View file @
13837134
...
...
@@ -718,7 +718,7 @@ function feeds_ui_mapping_settings_form_callback($form, $form_state) {
* Validation handler for feeds_ui_mapping_form().
*/
function
feeds_ui_mapping_form_validate
(
$form
,
&
$form_state
)
{
if
(
empty
(
$form_state
[
'values'
][
'source'
])
xor
empty
(
$form_state
[
'values'
][
'target'
]))
{
if
(
!
strlen
(
$form_state
[
'values'
][
'source'
])
xor
!
strlen
(
$form_state
[
'values'
][
'target'
]))
{
// Check triggering_element here so we can react differently for ajax
// submissions.
...
...
@@ -726,7 +726,7 @@ function feeds_ui_mapping_form_validate($form, &$form_state) {
// Regular form submission.
case
'op'
:
if
(
empty
(
$form_state
[
'values'
][
'source'
]))
{
if
(
!
strlen
(
$form_state
[
'values'
][
'source'
]))
{
form_error
(
$form
[
'source'
],
t
(
'You must select a mapping source.'
));
}
else
{
...
...
@@ -790,7 +790,7 @@ function feeds_ui_mapping_form_submit($form, &$form_state) {
$processor
->
addConfig
(
array
(
'mappings'
=>
$mappings
));
if
(
!
empty
(
$form_state
[
'values'
][
'source'
])
&&
!
empty
(
$form_state
[
'values'
][
'target'
]))
{
if
(
strlen
(
$form_state
[
'values'
][
'source'
])
&&
strlen
(
$form_state
[
'values'
][
'target'
]))
{
try
{
$mappings
=
$processor
->
getMappings
();
$mappings
[]
=
array
(
...
...
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