Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
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
justinfreeman (Agileware)
Core
Commits
e53df297
Commit
e53df297
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #1734 from davecivicrm/CRM-13475
CRM-13475 - Tweak to error message text.
parents
4fbd0214
8543f7c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/Payment/Form.php
+4
-4
4 additions, 4 deletions
CRM/Core/Payment/Form.php
with
4 additions
and
4 deletions
CRM/Core/Payment/Form.php
+
4
−
4
View file @
e53df297
...
...
@@ -262,7 +262,7 @@ class CRM_Core_Payment_Form {
);
$form
->
addRule
(
'credit_card_exp_date'
,
ts
(
'C
redit c
ard expiration date cannot be a past date.'
),
ts
(
'Card expiration date cannot be a past date.'
),
'currentDate'
,
TRUE
);
...
...
@@ -355,16 +355,16 @@ class CRM_Core_Payment_Form {
if
(
!
empty
(
$values
[
'credit_card_number'
])
&&
!
CRM_Utils_Rule
::
creditCardNumber
(
$values
[
'credit_card_number'
],
$values
[
'credit_card_type'
])
)
{
$errors
[
'credit_card_number'
]
=
ts
(
'Please enter a valid
Credit
Card Number'
);
$errors
[
'credit_card_number'
]
=
ts
(
'Please enter a valid Card Number'
);
}
if
(
!
empty
(
$values
[
'cvv2'
])
&&
!
CRM_Utils_Rule
::
cvv
(
$values
[
'cvv2'
],
$values
[
'credit_card_type'
])
)
{
$errors
[
'cvv2'
]
=
ts
(
'Please enter a valid
Credit
Card Verification Number'
);
$errors
[
'cvv2'
]
=
ts
(
'Please enter a valid Card Verification Number'
);
}
}
elseif
(
!
empty
(
$values
[
'credit_card_number'
]))
{
$errors
[
'credit_card_number'
]
=
ts
(
'Please enter a valid
Credit
Card Number
and Type
'
);
$errors
[
'credit_card_number'
]
=
ts
(
'Please enter a valid Card Number'
);
}
}
...
...
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