CCL: fix use of "term" field in sub queries
[yaz-moved-to-github.git] / src / cclqual.c
index e0761b8..73b103b 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
  * See the file LICENSE for details.
  */
 /** 
@@ -281,6 +281,7 @@ CCL_bibset ccl_qual_dup(CCL_bibset b)
             (*attrp)->next = 0;
             (*attrp)->set = attr->set ? xstrdup(attr->set) : 0;
             (*attrp)->type = attr->type;
+            (*attrp)->kind = attr->kind;
             if (attr->kind == CCL_RPN_ATTR_NUMERIC)
                 (*attrp)->value.numeric = attr->value.numeric;
             else if (attr->kind == CCL_RPN_ATTR_STRING)