Always set POC to current user if checkbox is checked
This commit is contained in:
parent
932922cfe6
commit
90ada6992b
@ -126,18 +126,13 @@ class JEDIRequestFlow(object):
|
|||||||
self.request_id = request.id
|
self.request_id = request.id
|
||||||
|
|
||||||
def map_request_data(self, section, data):
|
def map_request_data(self, section, data):
|
||||||
user = (
|
|
||||||
self.existing_request.creator
|
|
||||||
if self.existing_request
|
|
||||||
else self.current_user
|
|
||||||
)
|
|
||||||
if section == "primary_poc":
|
if section == "primary_poc":
|
||||||
if data.get("am_poc"):
|
if data.get("am_poc", False):
|
||||||
data = {
|
data = {
|
||||||
**data,
|
**data,
|
||||||
"dodid_poc": user.dod_id,
|
"dodid_poc": self.current_user.dod_id,
|
||||||
"fname_poc": user.first_name,
|
"fname_poc": self.current_user.first_name,
|
||||||
"lname_poc": user.last_name,
|
"lname_poc": self.current_user.last_name,
|
||||||
"email_poc": user.email,
|
"email_poc": self.current_user.email,
|
||||||
}
|
}
|
||||||
return {section: data}
|
return {section: data}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user