Upon an appeal, the appellate court may review any intermediate order involving the merits or necessarily affecting the judgment appealed from; and when it reverses or modifies such judgment, may direct complete restitution of all property and rights lost thereby.
ORS 19.425