Skip to content

Commit e1472ea

Browse files
committed
Fix values_as_in_model as well
1 parent 01935af commit e1472ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/values_as_in_model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ is_extracting_values(::IsParent, ::AbstractContext) = false
4545
is_extracting_values(::IsLeaf, ::AbstractContext) = false
4646

4747
function Base.push!(context::ValuesAsInModelContext, vn::VarName, value)
48-
return setindex!(context.values, copy(value), vn)
48+
return setindex!(context.values, copy(value), prefix(context, vn))
4949
end
5050

5151
function broadcast_push!(context::ValuesAsInModelContext, vns, values)

0 commit comments

Comments
 (0)