From 374681190e3b9d1abf02b4fe36fcacfdabbb063a Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 26 Mar 2018 10:28:56 +0000 Subject: [PATCH] #2002 --- inc/ws/DAO/class.ws.dao.book.php | 4 ++-- inc/ws/Metier/class.ws.lang.php | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/inc/ws/DAO/class.ws.dao.book.php b/inc/ws/DAO/class.ws.dao.book.php index 4ac6ce9ae..49d9dee7a 100644 --- a/inc/ws/DAO/class.ws.dao.book.php +++ b/inc/ws/DAO/class.ws.dao.book.php @@ -649,7 +649,7 @@ class wsDAOBook extends commonDAO { // Cleanup user translations $traductions = json_decode($traductions, true); foreach ($traductions as $k => $v) { - $traductions[$k] = trim($v); + $traductions[$k] = $v; } $daoLang = new wsDAOLang($this->con); @@ -657,7 +657,7 @@ class wsDAOBook extends commonDAO { // Cleanup base translations $baseTraductions = $lang->traductions; foreach ($baseTraductions as $k => $v) { - $baseTraductions[$k] = trim($v); + $baseTraductions[$k] = $v; } // Then compare them. If there is no differences, we don't save translations in the book if ($traductions == $baseTraductions) { diff --git a/inc/ws/Metier/class.ws.lang.php b/inc/ws/Metier/class.ws.lang.php index 2e91a33c6..cdc427ffb 100644 --- a/inc/ws/Metier/class.ws.lang.php +++ b/inc/ws/Metier/class.ws.lang.php @@ -108,8 +108,6 @@ class wsLang extends cubeMetier { continue; } if (self::cleanstr($traductions[$k]) != self::cleanstr($v)) { - fb(self::cleanstr($traductions[$k])); - fb(self::cleanstr($v)); return false; } } @@ -175,7 +173,4 @@ class wsLang extends cubeMetier { $c->update('WHERE lang_id = \'' . $core->con->escape($r->lang_id) . '\''); } } - -} - -?> \ No newline at end of file +} \ No newline at end of file -- 2.39.5