Content need an update when version 1.3 is installed (MGNLFORM-120)

[MGNLFORM-119] Cleanup content that contains old properties like "contactMailBody" Created: 21/Dec/11  Updated: 03/Dec/15  Resolved: 03/Dec/15

Status: Closed
Project: Magnolia Form Module
Component/s: migration & updates
Affects Version/s: None
Fix Version/s: 1.4.x

Type: Sub-task Priority: Major
Reporter: Samuel Schmitt Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLFORM-118 Update info.magnolia.module.form.proc... Closed
Template:

 Description   

Before version 1.3 of Form, the property "confirmMailBody" was available in the dialog /modules/form/dialogs/form/. Since Form 1.3, this property has been replaced by "confirmContentType".

Check the version handler of Form (delta 1.3), beacause there are other dialog properties removed.

The cleanup could be done within the migration process of Mgnl 4.5.

The logic could be:

  • find all template T where dialog = "form:form"
  • find all content where template is in T
  • then update the properties


 Comments   
Comment by Samuel Schmitt [ 30/Dec/11 ]

The logic is maybe a bit too ambitious.
Find all template T where dialog = "form:form" seems to be a nice solution.
But in the case of STK, the pages providing a registration form have the template "stkPURRegistrationForm".
This template has a dialog id "standard-templating-kit:components/pur/stkPURFormWithEMail".
And finally the template "stkPURFormWithEMail" extends some tabs of the dialog "/modules/form/dialogs/form/".

So it's not that easy, we should also check if the dialog of a template extends the dialog "form:form". Even more, we should check if the the dialog has in extension hierarchy "form:form". It could happen that it's an extension of an extension...

So for the 4.5, I will simply update manually the identified content of the demo project.

Generated at Mon Feb 12 05:37:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.