Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

model content doesn't propagate after upgrading to 12.17.1


I'm doing form like this:

Class MyModel
MyPageType CurrentContent {get; set;}


@model MyModel

                @using (Html.BeginForm("myMethod", "myController", FormMethod.Post, new { role = "form", id = "myId", enctype = "multipart/form-data", onsubmit = "submitForm();" }))

class myController: PageController<MyPageType>

public ActionResult myMethod(MyModel model)

In 12.15 everything was working as intended, current content was passed correctly.

In 12.17.1 and 12.18 current content is null.

To make matters worse this is on prod and i cannot reverse to veresion 12.15 because of database version.

Apr 04, 2023 10:59

Did you solve your issue?

Apr 11, 2023 23:56

i "solved" it by adding hidden entityId to form and fetching entity in the controller, for now i've blocked upgrades of optimizely in all other projects, waiting for new version and will retest

Apr 19, 2023 6:16
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.