Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

model content doesn't propagate after upgrading to 12.17.1

Vote:
 

I'm doing form like this:

Class MyModel
{
MyPageType CurrentContent {get; set;}
}

cshtml:

@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.

#299508
Apr 04, 2023 10:59
Vote:
 

Did you solve your issue?

#299963
Apr 11, 2023 23:56
Vote:
 

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

#300364
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.