Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
282f9433
Commit
282f9433
authored
Mar 29, 2016
by
Jérome Perrin
Committed by
Tristan Cavelier
Apr 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
credential: make CredentialRequest.getTitle consistent with base
parent
e7072c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
bt5/erp5_credential/DocumentTemplateItem/portal_components/document.erp5.CredentialRequest.py
...Item/portal_components/document.erp5.CredentialRequest.py
+9
-1
No files found.
bt5/erp5_credential/DocumentTemplateItem/portal_components/document.erp5.CredentialRequest.py
View file @
282f9433
...
...
@@ -75,6 +75,14 @@ class CredentialRequest(Ticket, EncryptedPasswordMixin):
name_list
.
append
(
self
.
getFirstName
())
if
self
.
getLastName
()
not
in
(
None
,
''
):
name_list
.
append
(
self
.
getLastName
())
return
' '
.
join
(
name_list
)
if
name_list
:
return
' '
.
join
(
name_list
)
return
self
.
getReference
()
or
self
.
getId
()
else
:
return
self
.
title
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'hasTitle'
)
def
hasTitle
(
self
):
return
self
.
title
or
self
.
hasFirstName
()
or
self
.
hasLastName
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment