USGS-WiM / SiGLDMS

Data management system for SiGL
Other
0 stars 5 forks source link

"contacts" entry empty #220

Closed mbreitmun closed 7 years ago

mbreitmun commented 7 years ago

I've added 5(?) projects today and I've come across this twice:

I enter "Contact" info and it doesn't show the info after saving. It shows that there is 1 contact entered (contacts.jpg). I exited out of the project and re-entered it and the contact field appears filled, but it's blank content contacts contacts_empty

(contacts_empty.jpg)

mbreitmun commented 7 years ago

The problem is repeating itself. I made sure that I've clicked the "save" button after initial entry.

troddick commented 7 years ago

@mbreitmun , I may need you to show me this. I am not able to duplicate it. I'm thinking it may have something to do with the org/div/sec you are choosing, but I'm not sure.

jlbruce commented 7 years ago

Hmm. I watched Molly re-enact this, and while she couldn't get an empty Contact to appear, she did have issues when copy and pasting contact info from Excel into the DMS. It created a Contact (at least the Contact count increased), but it never showed up in the list. We were able to manually enter contacts before and after the missing copied Contact just fine.

I'm traveling now, and I've been trying to recreate this behavior on my Mac (copying from Mac Excel), and I can't reproduce it on Test. Maybe it's a PC thing? I won't be able to test it on my PC until I get back, so Tonia, if you want to try it yourself, or do hangout with Molly and watch her, feel free. Here's the process that created the error:

troddick commented 7 years ago

Found the bug. The issue was in the services post new project_contact. If the contact already existed, it wasn't using the correct contact_id in the relationship (was assigning contact_id = 0). Fixed and updated.