Skip to content

Commit

Permalink
Merge pull request #1112 from joaoinacio/EZP-23624_edit_base_translation
Browse files Browse the repository at this point in the history
Fix EZP-23624: Unable to change base translation when editing content
  • Loading branch information
João Inácio committed Dec 3, 2014
2 parents 8c7a852 + e317273 commit 166997e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kernel/content/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@
}
}

// Action to base current translation on a different language
if ( $Module->isCurrentAction( 'FromLanguage' ) && $http->hasPostVariable( 'FromLanguage' ) && is_numeric( $EditVersion ) )
{
$FromLanguage = $http->postVariable( 'FromLanguage' );
return $Module->redirectToView( 'edit', array( $obj->attribute( 'id' ), $EditVersion, $EditLanguage, $FromLanguage ) );
}

// Action for the edit_language.tpl page.
// LanguageSelection is used to choose a language to edit the object in.
if ( $http->hasPostVariable( 'LanguageSelection' ) )
Expand Down

0 comments on commit 166997e

Please sign in to comment.