Merge branch 'master' into fix-file-reload

This commit is contained in:
Jim LAURIE 2018-09-10 15:12:52 +02:00 committed by GitHub
commit c68fdb1120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 5 deletions

View File

@ -18,6 +18,9 @@ Update the `production` settings with the IP and domain name where the project w
} }
``` ```
In case your database is not running on the same server, make sure that the environment of your production
database (`./config/environments/production/database.json`) is set properly.
**⚠️ If you changed the path to access to the administration, the step #2 is required.** **⚠️ If you changed the path to access to the administration, the step #2 is required.**
#### #2 - Setup (optional) #### #2 - Setup (optional)

View File

@ -9,7 +9,7 @@
"containers.Edit.delete": "Удалить", "containers.Edit.delete": "Удалить",
"containers.Edit.reset": "Сбросить", "containers.Edit.reset": "Сбросить",
"containers.Edit.returnList": "Вернуться к списку", "containers.Edit.returnList": "Вернуться к списку",
"containers.List.addAnEntry": "Добавить новую {entity}", "containers.List.addAnEntry": "Добавить новые {entity}",
"containers.List.pluginHeaderDescription": "{label} записей найдено", "containers.List.pluginHeaderDescription": "{label} записей найдено",
"containers.List.pluginHeaderDescription.singular": "{label} запись найдена", "containers.List.pluginHeaderDescription.singular": "{label} запись найдена",
"components.LimitSelect.itemsPerPage": "Элементов на странице", "components.LimitSelect.itemsPerPage": "Элементов на странице",
@ -46,9 +46,9 @@
"components.TableDelete.entries.plural": "{число} записей выбрано", "components.TableDelete.entries.plural": "{число} записей выбрано",
"components.TableDelete.entries.singular": "{число} записей выделено", "components.TableDelete.entries.singular": "{число} записей выделено",
"components.TableDelete.delete": "Удалить все", "components.TableDelete.delete": "Удалить все",
"components.TableEmpty.withFilters": "Нет {Тип данных} с примененными фильтрами...", "components.TableEmpty.withFilters": "Нет {contentType} с примененными фильтрами...",
"components.TableEmpty.withoutFilter": "Нет {Тип данных}...", "components.TableEmpty.withoutFilter": "Нет {contentType}...",
"components.TableEmpty.withSearch": "Нет {Тип данных} согласно поиску ({поиск})", "components.TableEmpty.withSearch": "Нет {contentType} согласно поиску ({search})",
"error.validation.json": "Это не JSON", "error.validation.json": "Это не JSON",
"form.Input.label.inputDescription": "Это знчение переопределит метку, в заголовке таблицы", "form.Input.label.inputDescription": "Это знчение переопределит метку, в заголовке таблицы",
"form.Input.label": "Метка", "form.Input.label": "Метка",

View File

@ -118,6 +118,11 @@ module.exports = {
const files = values.files; const files = values.files;
// set empty attributes if old values was cleared
_.difference(Object.keys(files), Object.keys(values.fields)).forEach(attr => {
values.fields[attr] = [];
});
// Parse stringify JSON data. // Parse stringify JSON data.
values = Object.keys(values.fields).reduce((acc, current) => { values = Object.keys(values.fields).reduce((acc, current) => {
acc[current] = parser(values.fields[current]); acc[current] = parser(values.fields[current]);