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
48762c66
Commit
48762c66
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Patches
Plain Diff
add classes for soft credit listing and fixed WebTest_Contribute_ContactContextAddTest
parent
d6fac112
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/CRM/Contribute/Form/ContributionView.tpl
+3
-3
3 additions, 3 deletions
templates/CRM/Contribute/Form/ContributionView.tpl
tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
+1
-1
1 addition, 1 deletion
tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
with
4 additions
and
4 deletions
templates/CRM/Contribute/Form/ContributionView.tpl
+
3
−
3
View file @
48762c66
...
...
@@ -202,17 +202,17 @@
</table>
{
if
$softContributions
and
!
$pcp_id
}
{* We show soft credit name with PCP section if contribution is linked to a PCP. *}
<div
class=
"crm-accordion-wrapper "
>
<div
class=
"crm-accordion-wrapper
crm-soft-credit-pane
"
>
<div
class=
"crm-accordion-header"
>
{
ts
}
Soft Credit
{/
ts
}
</div>
<div
class=
"crm-accordion-body"
>
<table
class=
"crm-info-panel"
>
<table
class=
"crm-info-panel
crm-soft-credit-listing
"
>
{
foreach
from
=
$softContributions.soft_credit
item
=
"softCont"
}
<tr>
<td>
<a
href=
"
{
crmURL
p
=
"civicrm/contact/view"
q
=
"reset=1&cid=`$softCont.contact_id`"
}
"
id=
"view_contact"
title=
"
{
ts
}
View contact record
{/
ts
}
"
>
{
$softCont.contact_name
}
title=
"
{
ts
}
View contact record
{/
ts
}
"
>
{
$softCont.contact_name
}
</a>
</td>
<td>
{
$softCont.amount
|
crmMoney
:
$currency
}
</td>
...
...
This diff is collapsed.
Click to expand it.
tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
+
1
−
1
View file @
48762c66
...
...
@@ -180,7 +180,7 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase {
$this
->
assertDBCompareValues
(
'CRM_Contribute_DAO_Contribution'
,
$searchParams
,
$compareParams
);
// go to soft creditor contact view page
$this
->
click
(
"xpath=id('ContributionView')/div[2]/table[1]/tbody/tr[17]/td[2]/a[text()='
{
$
soft
C
redit
Fname
}
{
$softCreditLname
}
']"
);
$this
->
click
(
"css=table.crm-
soft
-c
redit
-listing tbody tr td a"
);
// go to contribution tab
$this
->
waitForElementPresent
(
"css=li#tab_contribute a"
);
...
...
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