Просмотр исходного кода

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

Michael Stilkerich 5 лет назад
Родитель
Сommit
398e93e215
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      radicale/item/filter.py

+ 1 - 1
radicale/item/filter.py

@@ -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: