Project

General

Profile

0001-misc-protect-against-removed-category-8906.patch

Frédéric Péters, 07 November 2015 02:19 PM

Download (944 Bytes)

View differences:

Subject: [PATCH] misc: protect against removed category (#8906)

 wcs/admin/forms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/admin/forms.py
365 365
                self.formdef.keywords and
366 366
                self.formdef.keywords or C_('keywords|None'))
367 367
        r += add_option_line('options/category', _('Category'),
368
                self.formdef.category_id and
368
                self.formdef.category_id and self.formdef.category and
369 369
                self.formdef.category.name or C_('category|None'))
370 370
        r += htmltext('</ul>')
371 371
        r += htmltext('</div>')
372
-