When submitting translated strings the submit handler fails due to call to a member function of a non-object.

Proposed resolution

Check if i18n_string_get_by_lid($lid) returns a valid object.
The same is done in i18n_string_locale_translate_edit_form() so I think this can be done here the same way.
But I have no overview of what you're doing here at all :)

i18n_string_submit_form_nonobject.patch800 bytesLukyLuke_ch
PASSED: [[SimpleTest]]: [MySQL] 2,221 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


jgullstr’s picture

Version: 7.x-1.11 » 7.x-1.x-dev
Status: Needs review » Closed (duplicate)
jgullstr’s picture