cubicweb #5087412 primary view for deprecated CWProperty raises exception [validation pending]

Traceback (most recent call last):
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/web/application.py", line 462, in core_handle
    result = controller.publish(rset=rset)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/web/views/basecontrollers.py", line 136, in publish
    rset=rset, view=view)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/cwvreg.py", line 388, in main_template
    res = obj.render(**kwargs)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/view.py", line 136, in render
    view_func(**context)
  File "/home/rcardona/Projects/grshell-jpl/cubes/squareui/views/basetemplates.py", line 39, in call
    self.template_page_content(view)
  File "/home/rcardona/Projects/grshell-jpl/cubes/squareui/views/basetemplates.py", line 80, in template_page_content
    self.content_column(view, content_cols)
  File "/home/rcardona/Projects/grshell-jpl/cubes/squareui/views/basetemplates.py", line 150, in content_column
    view.render(w=w)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/view.py", line 136, in render
    view_func(**context)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/view.py", line 341, in call
    super(EntityView, self).call(**kwargs)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/view.py", line 186, in call
    self.cell_call(row=0, **kwargs)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/web/views/editforms.py", line 109, in cell_call
    self.render_form(entity)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/web/views/editforms.py", line 118, in render_form
    form.render(w=self.w)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/web/views/forms.py", line 394, in render
    return super(EntityFieldsForm, self).render(*args, **kwargs)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/web/views/forms.py", line 203, in render
    self.build_context(formvalues)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/web/views/forms.py", line 227, in build_context
    field.form_init(self)
  File "/home/rcardona/Projects/grshell-jpl/cubicweb/web/views/cwproperties.py", line 365, in form_init
    self.value = pdef['default']
UnboundLocalError: local variable 'pdef' referenced before assignment
prioritynormal
typebug
done in3.20.5
load0.500
load left0.000
closed by#e7cdf820fe8f [web/views] Fix exception in CWProperty edit form (closes #5087412)
patch[web/views] Fix exception in CWProperty edit form (closes #5087412) [applied]