]> git.agnieray.net Git - galette.git/commitdiff
Dynamic translations were not correctly removed
authorJohan Cwiklinski <jcwiklinski@teclib.com>
Sun, 15 Dec 2019 14:31:51 +0000 (15:31 +0100)
committerJohan Cwiklinski <jcwiklinski@teclib.com>
Tue, 17 Dec 2019 23:40:44 +0000 (00:40 +0100)
galette/lib/Galette/Entity/I18nTrait.php

index d5ca16427c4bdd355d4e95403ed5dce5d530b427..ce6f30ec607a453150e3dac8f11684eafcda95b5 100644 (file)
@@ -207,19 +207,10 @@ trait I18nTrait
             $delete = $this->zdb->delete(L10n::TABLE);
             $delete->where(
                 array(
-                    'text_orig'     => $text_orig,
-                    'text_locale'   => ':lang_id'
+                    'text_orig'     => $text_orig
                 )
             );
-            $stmt = $this->zdb->sql->prepareStatementForSqlObject($delete);
-
-            foreach ($i18n->getList() as $lang) {
-                $stmt->execute(
-                    array(
-                        'where2' => $lang->getLongID()
-                    )
-                );
-            }
+            $this->zdb->execute($delete);
             return true;
         } catch (Exception $e) {
             Analog::log(