Problem/Motivation

If a component is updated the components translated_strings ($component['extra']['translated_strings']) are lost .
This happens because the used hook hook_webform_component_update() is fired after the update and thus doesn't accept a return value nor a referenced parameter.

Proposed resolution

Use the hook hook_webform_component_presave() instead.

Remaining tasks

Review patch and especially test adding new components.

User interface changes

none

API changes

none

Comments

das-peter’s picture

Sorry for the bunch of duplicates - d.o. just went nuts for a moment.
And here's the lost patch ;)

heliogabal’s picture

I applied the patch and strings are now kept when updating components. Also adding new components and/or updating them is working. Hope this helps.

GDrupal’s picture

Status: Needs review » Fixed

Committed thanks @das-peter

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.