DanielZambSB / Equipo-IA

0 stars 0 forks source link

Saving Inquiry Detail erases provider id, and contacted provider id if not in session #38

Open DanielZambSB opened 1 month ago

DanielZambSB commented 1 month ago

Describe the bug When the final user updates the status on the inquiry it erases the assigned provider, and if not in session, deletes also the contacted provider.

To Reproduce Steps to reproduce the behavior:

  1. Change the status of any inquiry with provider id

  2. see the detail of that inquiry

  3. provider is gone

  4. shouldnt happen

  5. reload the app

  6. try to change status on an inquiry

  7. as the inquiryDetailObject/Options that tracks the object has a value of "", thats what it saves, not the past value,

  8. erases, contacted provider id, but sometimes also erases provider id

Expected behavior provider id and its contact should stay put in the dbn

Desktop (please complete the following information):

DanielZambSB commented 1 month ago

also, when parsing the detail, if it doesnt have a provider, it puts the null one

DanielZambSB commented 1 month ago

solved, now saveDetail saves the update also on the current mailbox the user is in, so the current cached array get updated

DanielZambSB commented 1 month ago

found another bug, realting saving communications with providers

DanielZambSB commented 1 month ago

comunication with provider , missing the id from the provider

DanielZambSB commented 1 month ago

fixed