Commit 13c27d25 authored by Jean-Baptiste Oellers's avatar Jean-Baptiste Oellers
Browse files

Fix: textes personnalisés retour à la valeur par défaut redmine #65220

parent 76a4362b
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class OscarText
        static $merged;
        if( $reload || !$merged ) {
            $base = self::getBase();
            $custom = self::getCustom();
            $custom = self::getCustom($reload);
            $merged = [];
            foreach ($base as $key=>$text) {
                $value = $text;
+3 −1
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ class AdminCustomTextAPIService extends AbstractAPIService
        foreach ($data as $key => &$value) {
            if( $key != $value ){
                $custom[$key] = $value;
            } else {
                unset($custom[$key]);
            }
        }
        if( !is_writable(OscarText::fileCustom()) ){