From f902cf003693e924f64f723ea05b0a3b0f2fbe62 Mon Sep 17 00:00:00 2001 From: adranwit Date: Thu, 8 Aug 2024 07:26:45 -0700 Subject: [PATCH] patched scope --- service/session/stater.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/session/stater.go b/service/session/stater.go index 6b15af9f..f137c452 100644 --- a/service/session/stater.go +++ b/service/session/stater.go @@ -40,6 +40,9 @@ func (s *Session) Into(ctx context.Context, dest interface{}, opts ...hstate.Opt if hOptions.HttpRequest() != nil || hOptions.Form() != nil { options.kindLocator.RemoveLocators(state.KindForm, state.KindRequest, state.KindQuery) } + if hOptions.Constants() != nil { + options.kindLocator.RemoveLocators(state.KindConst) + } if err = s.SetState(ctx, stateType.Parameters, aState, options); err != nil { return err }