index eb4d8b6..4d0da59 100644 --- a/i18n_string/i18n_string.pages.inc +++ b/i18n_string/i18n_string.pages.inc
@@ -398,8 +398,9 @@ function i18n_string_locale_translate_edit_form_submit($form, &$form_state) {
// Invoke locale submission.
locale_translate_edit_form_submit($form, $form_state);
$lid = $form_state['values']['lid']; - $i18n_string_object = i18n_string_get_by_lid($lid);
- $i18n_string_object->cache_reset(); + if ($i18n_string_object = i18n_string_get_by_lid($lid)) {
+ $i18n_string_object->cache_reset();
+ }
foreach ($form_state['values']['translations'] as $key => $value) {
if (!empty($value)) {
// An update has been made, so we assume the translation is now current.
Enlace del parche http://cgit.drupalcode.org/i18n/commit/?id=76b371e
Enlace de la solución del error https://drupal.org/node/2227523
robertoguzman@…
este error lo crea un error???
Lun, 02/06/2014 - 13:14este error lo crea un error el Sub módulo i18n_string.
El siguiente parche lo corrige
diff --git a/i18n_string/i18n_string.pages.inc b/i18n_string/i18n_string.pages.inc
index eb4d8b6..4d0da59 100644
--- a/i18n_string/i18n_string.pages.inc
+++ b/i18n_string/i18n_string.pages.inc
@@ -398,8 +398,9 @@ function i18n_string_locale_translate_edit_form_submit($form, &$form_state) {
// Invoke locale submission.
locale_translate_edit_form_submit($form, $form_state);
$lid = $form_state['values']['lid'];
- $i18n_string_object = i18n_string_get_by_lid($lid);
- $i18n_string_object->cache_reset();
+ if ($i18n_string_object = i18n_string_get_by_lid($lid)) {
+ $i18n_string_object->cache_reset();
+ }
foreach ($form_state['values']['translations'] as $key => $value) {
if (!empty($value)) {
// An update has been made, so we assume the translation is now current.
Enlace del parche http://cgit.drupalcode.org/i18n/commit/?id=76b371e
Enlace de la solución del error https://drupal.org/node/2227523