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
cd2c9605
Commit
cd2c9605
authored
5 years ago
by
alicefrumin
Committed by
Alice Frumin
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
#530
CiviCase: using label instead of name to be consistent and commenting why
parent
b79ff943
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
+8
-2
8 additions, 2 deletions
ang/crmCaseType.js
with
8 additions
and
2 deletions
ang/crmCaseType.js
+
8
−
2
View file @
cd2c9605
...
...
@@ -297,16 +297,18 @@
});
}
}
// TODO The ids below really should use names not labels see
// https://lab.civicrm.org/dev/core/issues/774
else
{
result
.
push
({
text
:
relType
.
label_b_a
,
id
:
relType
.
name
_a_b
id
:
relType
.
label
_a_b
});
if
(
!
isBidirectionalRelationship
)
{
result
.
push
({
text
:
relType
.
label_a_b
,
id
:
relType
.
name
_b_a
id
:
relType
.
label
_b_a
});
}
}
...
...
@@ -455,6 +457,10 @@
activity
.
default_assignee_contact
=
null
;
};
// TODO roleName passed to addRole is a misnomer, its passed as the
// label HOWEVER it should be saved to xml as the name see
// https://lab.civicrm.org/dev/core/issues/774
/// Add a new role
$scope
.
addRole
=
function
(
roles
,
roleName
)
{
var
names
=
_
.
pluck
(
$scope
.
caseType
.
definition
.
caseRoles
,
'
name
'
);
...
...
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