* @todo - when we support value-box groups on the RHS in
* apply_edits_to_leaf(), this next block can be deleted.
*/
- if (fr_type_is_leaf(tmpl_attr_tail_da(current->lhs.vpt)->type) && (map->op != T_OP_SET)) {
+ if (fr_type_is_leaf(tmpl_attr_tail_da(current->lhs.vpt)->type) && (map->op != T_OP_SET) && (map->op != T_OP_EQ)) {
REDEBUG("%s[%d] Must use ':=' when editing list of normal data types", MAP_INFO);
return -1;
}
--- /dev/null
+#
+# PRE: if edit-list
+#
+&control.Filter-Id = { 'A', 'B' }
+
+if !(%{control.Filter-Id[#]} == 2) {
+ test_fail
+}
+
+if !(&control.Filter-Id[1] == 'B') {
+ test_fail
+}
+
+#
+# Add of SECOND bit fails
+#
+&control.Filter-Id = { 'C', 'D' }
+
+if !(%{control.Filter-Id[#]} == 2) {
+ test_fail
+}
+
+if !(&control.Filter-Id[0] == 'A') {
+ test_fail
+}
+
+if !(&control.Filter-Id[1] == 'B') {
+ test_fail
+}
+
+success