cubicweb #3802298 uihelper.FormConfig crashes when used with a custom uicfg object [validation pending]

Traceback:

  File "/home/florent/Simulagora/cubicweb/web/uihelper.py", line 86, in __init__
    uicfg_afs.hide_field(cls.etype, attr_role, formtype=cls.formtype)
exceptions.UnboundLocalError: local variable 'uicfg_afs' referenced before assignment
priorityminor
typebug
done in3.19.6
load0.100
load left0.000
closed by#8d4266411be5 [uihelper] Fix a possible NameError in meta_formconfig
patch[uihelper] Fix crash when using FormConfig with a custom uicfg object. [folded]