U4-2921 - dataeditors stopped working in front-end

Created by Yannick Smits 24 Sep 2013, 12:20:18 Updated by Sebastiaan Janssen 25 Sep 2013, 10:09:50

Relates to: U4-1401

From 6.0.0 and up DataEditors don't save their content anymore if used in the front-end. This is demonstrated by the 2 popular packages: doc2form: http://our.umbraco.org/projects/website-utilities/doc2form/bug-reports-issues/38050-Doc2Form-not-saving-data-to-node-(Umbraco-600) and osMemberControls: http://our.umbraco.org/projects/website-utilities/osmembercontrols/osmembercontrols/44887-edit-profile-stopped-working-in-v6

Comments

Yannick Smits 24 Sep 2013, 14:09:28

Ok, apparently this was caused by an undocumented breaking change from v4 to v6. The code says: //NOTE This is a workaround for the legacy approach to saving values through the DataType instead of the Property //- (The DataType shouldn't be responsible for saving the value - especically directly to the db). https://github.com/umbraco/Umbraco-CMS/blob/6.2.0/src/Umbraco.Web/umbraco.presentation/umbraco/editContent.aspx.cs#L482-489 so if you add those lines just after doing your regular dataeditor.Save() you'll be fine in v6.

issue can be closed now.


Sebastiaan Janssen 25 Sep 2013, 10:09:50

It is marked as a breaking change in U4-1401. Difficult to know which packages used the "old" save behavior. :-)


Priority: Minor

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.0, 6.1.0, 6.0.1, 6.0.2, 6.0.4, 6.1.1, 6.0.6, 6.0.5, 6.0.7, 6.1.2, 6.1.3, 6.1.4, 6.1.5

Due in version:

Sprint:

Story Points:

Cycle: