Project

General

Profile

Bug #71563

vue detail formdata, bloc de champs avec un display mais pas de value (TypeError: 'NoneType' object is not subscriptable)

Added by Sentry Io 2 months ago. Updated 2 months ago.

Status:
Fermé
Priority:
Normal
Target version:
-
Start date:
22 November 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/97429/

TypeError: 'NoneType' object is not subscriptable
(15 additional frame(s) were not displayed)
...
  File "wcs/forms/common.py", line 639, in status
    r += self.receipt(always_include_user=True, mine=False)
  File "wcs/backoffice/management.py", line 3026, in receipt
    r += super().receipt(*args, **kwargs)
  File "wcs/forms/common.py", line 511, in receipt
    r += self.display_fields(form_url=form_url)
  File "wcs/forms/common.py", line 583, in display_fields
    s = f.get_view_value(
  File "wcs/fields.py", line 3932, in get_view_value
    for i, row_value in enumerate(value['data']):

Files

Associated revisions

Revision 76fada8e (diff)
Added by Lauréline Guérin 2 months ago

fields: fix BlockField.get_view_value on invalid value (#71563)

History

#1

Updated by Lauréline Guérin 2 months ago

  • Project changed from Suivi des traces to w.c.s.
  • Subject changed from TypeError: 'NoneType' object is not subscriptable to vue detail formdata, bloc de champs avec un display mais pas de value (TypeError: 'NoneType' object is not subscriptable)

field.get_value_info a renvoyé:

{
    field: <BlockField 145 'Adresse'>,
    value: 'foo bar',
    value_details: {
        value_id: None
    }
}
#3

Updated by Lauréline Guérin 2 months ago

#4

Updated by Frédéric Péters 2 months ago

  • Status changed from Solution proposée to Solution validée
#5

Updated by Lauréline Guérin 2 months ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 76fada8e8cbf41a5ac4477de33dbc86cda590dd7
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Tue Nov 22 10:44:39 2022 +0100

    fields: fix BlockField.get_view_value on invalid value (#71563)
#6

Updated by Transition automatique 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée
#7

Updated by Transition automatique 10 days ago

Automatic expiration

Also available in: Atom PDF