Преглед на файлове

Set webservice decode_utf8 = true by default see #2052

jmontoyaa преди 7 години
родител
ревизия
1b15ca0d20
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      app/Migrations/Schema/V200/Version20.php
  2. 1 1
      src/CoreBundle/Settings/WebServiceSettingsSchema.php

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

@@ -466,6 +466,7 @@ class Version20 extends AbstractMigrationChamilo
         if (!$table->hasColumn('position')) {
         if (!$table->hasColumn('position')) {
             $this->addSql('ALTER TABLE session ADD COLUMN position INT DEFAULT 0 ');
             $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
         $builder
             ->setDefaults(
             ->setDefaults(
                 [
                 [
-                    'decode_utf8' => 'false',
+                    'decode_utf8' => 'true',
                     'messaging_allow_send_push_notification' => 'false',
                     'messaging_allow_send_push_notification' => 'false',
                     'messaging_gdc_project_number' => '',
                     'messaging_gdc_project_number' => '',
                     'messaging_gdc_api_key' => '',
                     'messaging_gdc_api_key' => '',