if (fr_type_is_structural(parent_da->type)) {
map_t *child;
+ /*
+ * Don't update namespace for &reply += { ... }
+ *
+ * Do update namespace for &reply.foo += { ... }
+ */
+ if ((tmpl_attr_num_elements(map->lhs) > 1) && (t_rules.attr.list_def != parent_da)) {
+ t_rules.attr.namespace = parent_da;
+ }
+
if (map_afrom_cs_edit(map, &map->child, cs, &t_rules, &t_rules, unlang_fixup_edit, map, 256) < 0) {
goto fail;
}
KEYWORD_UPDATE_REWRITE_TESTS := update-all update-array update-delete update-remove-any update-group update-hex update-remove-value update-index update-list-error update-remove-list update-prepend unknown-update update-error update-error-2 update-exec-error update-list-null-rhs update-exec
+KEYWORD_UPDATE_TMPL_TESTS := edit-list-levels
+
#
# Migration support. Some of the tests don't run under the new
# conditions, so we don't run them under the new conditions.
$(OUTPUT)/${1}: NEW_COND=-S use_new_conditions=yes
else ifneq "$(findstring ${1}, $(KEYWORD_UPDATE_REWRITE_TESTS))" ""
$(OUTPUT)/${1}: NEW_COND=-S use_new_conditions=yes -S rewrite_update=yes
+else ifneq "$(findstring ${1}, $(KEYWORD_UPDATE_TMPL_TESTS))" ""
+$(OUTPUT)/${1}: NEW_COND=-S use_new_conditions=yes -S rewrite_update=yes -S tmpl_tokenize_all_nested=yes
else
$(OUTPUT)/${1}: NEW_COND=-S use_new_conditions=yes -S forbid_update=yes