Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
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
Development
CiviCRM Core
Commits
f34c1034
Commit
f34c1034
authored
5 years ago
by
alicefrumin
Committed by
Alice Frumin
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
#530
CiviCase: when creating a new reltype assume client is A
parent
cd2c9605
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
ang/crmCaseType.js
+1
-1
1 addition, 1 deletion
ang/crmCaseType.js
with
1 addition
and
1 deletion
ang/crmCaseType.js
+
1
−
1
View file @
f34c1034
...
...
@@ -473,7 +473,7 @@
CRM
.
loadForm
(
CRM
.
url
(
'
civicrm/admin/reltype
'
,
{
action
:
'
add
'
,
reset
:
1
,
label_a_b
:
roleName
}))
.
on
(
'
crmFormSuccess
'
,
function
(
e
,
data
)
{
var
newType
=
_
.
values
(
data
.
relationshipType
)[
0
];
roles
.
push
({
name
:
newType
.
label_
a_b
,
displaylabel
:
newType
.
label_
b_a
});
roles
.
push
({
name
:
newType
.
label_
b_a
,
displaylabel
:
newType
.
label_
a_b
});
// Assume that the case role should be A-B but add both directions as options.
$scope
.
relationshipTypeOptions
.
push
({
id
:
newType
.
label_a_b
,
text
:
newType
.
label_a_b
});
if
(
newType
.
label_a_b
!=
newType
.
label_b_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