Commit cf1c1bce authored by Nicolas Widart's avatar Nicolas Widart

Merge commit '7d499d34'

* commit '7d499d34':
  Squashed 'Modules/Core/' changes from 450a7ec9..fe00a0a
parents fe620738 7d499d34
......@@ -13,9 +13,9 @@ class Helper
*/
public static function saveTranslated($model, $data)
{
foreach ($data as $key => $value) {
foreach ($data as $lang => $value) {
if (is_array($value)) {
foreach ($value as $lang => $input) {
foreach ($value as $key => $input) {
$model->translate($lang)->$key = $input;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment