senaite / senaite.patient

Patient handling for SENAITE
GNU General Public License v2.0
10 stars 15 forks source link

Fix traceback when creating partitions #79

Closed xispa closed 1 year ago

xispa commented 1 year ago

Description of the issue/feature this PR addresses

This Pull Request fixes a traceback that arises when creating partitions

Current behavior before PR

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 176, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 385, in publish_module
  Module ZPublisher.WSGIPublisher, line 288, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 63, in call_object
  Module bika.lims.browser.partition_magic, line 98, in __call__
  Module bika.lims.utils.analysisrequest, line 434, in create_partition
  Module bika.lims.utils.analysisrequest, line 92, in create_analysisrequest
  Module Products.Archetypes.BaseObject, line 676, in processForm
  Module Products.Archetypes.BaseObject, line 653, in _processForm
   - __traceback_info__: (<AnalysisRequest at /senaite/clients/client-1/62cdd3eba4c92cd8c485d1c6c6f7433d>, <Field PatientAddress(text:rw)>, <function mutator at 0x7f86c2db7f50>)
  Module senaite.patient.browser.widgets.agedob, line 55, in process_form
AttributeError: 'tuple' object has no attribute 'get'

Desired behavior after PR is merged

No complains

-- I confirm I have tested this PR thoroughly and coded it according to PEP8 and Plone's Python styleguide standards.