Эх сурвалжийг харах

Set webservice decode_utf8 = true by default see #2052

jmontoyaa 7 жил өмнө
parent
commit
1b15ca0d20

+ 1 - 0
app/Migrations/Schema/V200/Version20.php

@@ -466,6 +466,7 @@ class Version20 extends AbstractMigrationChamilo
         if (!$table->hasColumn('position')) {
             $this->addSql('ALTER TABLE session ADD COLUMN position INT DEFAULT 0 ');
         }
+        $this->addSql("UPDATE settings_current SET selected_value = 'true' WHERE variable = 'decode_utf8'");
     }
 
     /**

+ 1 - 1
src/CoreBundle/Settings/WebServiceSettingsSchema.php

@@ -22,7 +22,7 @@ class WebServiceSettingsSchema extends AbstractSettingsSchema
         $builder
             ->setDefaults(
                 [
-                    'decode_utf8' => 'false',
+                    'decode_utf8' => 'true',
                     'messaging_allow_send_push_notification' => 'false',
                     'messaging_gdc_project_number' => '',
                     'messaging_gdc_api_key' => '',