It looks like that when a ChooserBlock (or subclass) is within a StructBlock, the selected object's label is not able to contribute to getTextLabel (I think?) and so the next block is looked to for the StructBlock's label. When a ChooserBlock is specified explicitly in label_format, then null is given as the name in the editor. Seems like somehow getTextLabel just needs to see the result of get_title on the AdminChooser. ...I'd try to get you a PR, but I just don't have the time to go any deeper. Very much appreciate all the work you put into this!
It looks like that when a
ChooserBlock
(or subclass) is within aStructBlock
, the selected object's label is not able to contribute to getTextLabel (I think?) and so the next block is looked to for theStructBlock
's label. When aChooserBlock
is specified explicitly inlabel_format
, thennull
is given as the name in the editor. Seems like somehow getTextLabel just needs to see the result ofget_title
on theAdminChooser
. ...I'd try to get you a PR, but I just don't have the time to go any deeper. Very much appreciate all the work you put into this!