Fix is-not-defined filter in addressbook-query report

This commit is contained in:
Michael Stilkerich 2021-01-22 15:25:18 +01:00 committed by Unrud
parent 21099f2240
commit 398e93e215

View File

@ -115,7 +115,7 @@ def prop_match(vobject_item, filter_, ns):
# Point #1 of rfc4791-9.7.2
return name in vobject_item.contents
if len(filter_) == 1:
if filter_[0].tag == xmlutils.make_clark("C:is-not-defined"):
if filter_[0].tag == xmlutils.make_clark("%s:is-not-defined" % ns):
# Point #2 of rfc4791-9.7.2
return name not in vobject_item.contents
if name not in vobject_item.contents: