* Now that we're done, the leaf entries can be changed again.
*/
vp = tmpl_dcursor_init(NULL, NULL, &state->cc, &state->cursor, state->request, state->vpt);
- fr_assert(vp != NULL);
-
+ if (!vp) return 0;
do {
vp->vp_edit = false;
} while ((vp = fr_dcursor_next(&state->cursor)) != NULL);
Filter-Id = "broken"
}
-foreach Filter-Id {
+foreach thing (Filter-Id) {
#
# If we see this one, "break" out of the
# foreach loop.
#
- if ("%{Foreach-Variable-0}" == "broken") {
+ if (thing == "broken") {
break
}
reply += {
- Called-Station-Id = "%{Foreach-Variable-0}"
+ Called-Station-Id = thing
}
}
Filter-Id = "2"
}
-foreach Reply-Message {
- if ("%{Foreach-Variable-0}" == "1") {
+foreach thing (Reply-Message) {
+ if (thing == "1") {
request += {
Filter-Id = "3"
}
Filter-Id = "2"
}
-foreach Reply-Message {
- if ("%{Foreach-Variable-0}" == "1") {
+foreach thing (Reply-Message) {
+ if (thing == "1") {
request += {
Filter-Id = "3"
}
}
- if ("%{Foreach-Variable-0}" == "3") {
+ if (thing == "3") {
break
}
}