diff --git a/product/ERP5Type/ERP5Type.py b/product/ERP5Type/ERP5Type.py index c25443b2d551c22084977c06f7d8e0b063bf5dbe..2e67b78d4bea2cc99090c0322c1ba1f3439f3f0d 100644 --- a/product/ERP5Type/ERP5Type.py +++ b/product/ERP5Type/ERP5Type.py @@ -190,7 +190,7 @@ class LocalRoleAssignorMixIn(object): elif k == 'id': k, v = 'role_name', tuple(x.strip() for x in v.split(';')) elif k in ('base_category', 'category'): - k, v = 'role_' + k, tuple(x.strip() for x in v) + k, v = 'role_' + k, tuple(y for y in (x.strip() for x in v) if y) elif k == 'base_category_script': k = 'role_base_category_script_id' setattr(role, k, v)