diff --git a/phpmyfaq/admin/faqs.editor.php b/phpmyfaq/admin/faqs.editor.php
index 4f763fde75..7cc687a062 100644
--- a/phpmyfaq/admin/faqs.editor.php
+++ b/phpmyfaq/admin/faqs.editor.php
@@ -213,7 +213,7 @@
}
// Revisions
- $selectedRevisionId = Filter::filterInput(INPUT_POST, 'revisionid_selected', FILTER_VALIDATE_INT);
+ $selectedRevisionId = Filter::filterInput(INPUT_POST, 'selectedRevisionId', FILTER_VALIDATE_INT);
if (is_null($selectedRevisionId)) {
$selectedRevisionId = $faqData['revision_id'];
}
@@ -348,7 +348,6 @@
$isInActive = null;
}
-
$attList = AttachmentFactory::fetchByRecordId(
$faqConfig,
$faqData['id']
diff --git a/phpmyfaq/assets/templates/admin/content/faq.editor.twig b/phpmyfaq/assets/templates/admin/content/faq.editor.twig
index 04e2c2b10e..369676463f 100644
--- a/phpmyfaq/assets/templates/admin/content/faq.editor.twig
+++ b/phpmyfaq/assets/templates/admin/content/faq.editor.twig
@@ -56,13 +56,13 @@
-
+
diff --git a/phpmyfaq/src/phpMyFAQ/Controller/Administration/FaqController.php b/phpmyfaq/src/phpMyFAQ/Controller/Administration/FaqController.php
index 2e39cf27f4..e7f3682da2 100644
--- a/phpmyfaq/src/phpMyFAQ/Controller/Administration/FaqController.php
+++ b/phpmyfaq/src/phpMyFAQ/Controller/Administration/FaqController.php
@@ -88,6 +88,7 @@ public function create(Request $request): JsonResponse
// Collect FAQ data
$question = Filter::filterVar($data->question, FILTER_SANITIZE_SPECIAL_CHARS);
+
if (is_array($data->{'categories[]'})) {
$categories = Filter::filterArray($data->{'categories[]'});
} else {
diff --git a/phpmyfaq/translations/language_de.php b/phpmyfaq/translations/language_de.php
index 5107889740..47a6052cb7 100755
--- a/phpmyfaq/translations/language_de.php
+++ b/phpmyfaq/translations/language_de.php
@@ -1193,7 +1193,7 @@
// added v2.9.0-RC - 2016-02-19 by Thorsten
$PMF_LANG['ad_admin_notes'] = 'Private Notizen';
-$PMF_LANG['ad_admin_notes_hint'] = '%s (nur für Editoren sichtbar)';
+$PMF_LANG['ad_admin_notes_hint'] = ' (nur für Editoren sichtbar)';
// added v2.9.10 - 2018-02-17 by Thorsten
$PMF_LANG['ad_quick_entry'] = 'Neue FAQ in dieser Kategorie anlegen';
diff --git a/phpmyfaq/translations/language_en.php b/phpmyfaq/translations/language_en.php
index 71533068ae..bd612d04a5 100644
--- a/phpmyfaq/translations/language_en.php
+++ b/phpmyfaq/translations/language_en.php
@@ -1193,7 +1193,7 @@
// added v2.9.0-RC - 2016-02-19 by Thorsten
$PMF_LANG['ad_admin_notes'] = 'Private Notes';
-$PMF_LANG['ad_admin_notes_hint'] = '%s (only visible for editors)';
+$PMF_LANG['ad_admin_notes_hint'] = ' (only visible for editors)';
// added v2.9.10 - 2018-02-17 by Thorsten
$PMF_LANG['ad_quick_entry'] = 'Add new FAQ in this category';
diff --git a/phpmyfaq/translations/language_es.php b/phpmyfaq/translations/language_es.php
index f472469253..d52938c38d 100644
--- a/phpmyfaq/translations/language_es.php
+++ b/phpmyfaq/translations/language_es.php
@@ -1191,7 +1191,7 @@
// añadido v2.9.0-RC - 2016-02-19 por Thorsten
$PMF_LANG['ad_admin_notes'] = 'Notas privadas';
-$PMF_LANG['ad_admin_notes_hint'] = '%s (sólo visible para los editores)';
+$PMF_LANG['ad_admin_notes_hint'] = ' (sólo visible para los editores)';
// Añadido v2.9.10 - 2018-02-17 por Thorsten
$PMF_LANG['ad_quick_entry'] = 'Crear nueva FAQ en esta categoría';
diff --git a/phpmyfaq/translations/language_fr.php b/phpmyfaq/translations/language_fr.php
index f0dde504d1..01a42e248d 100644
--- a/phpmyfaq/translations/language_fr.php
+++ b/phpmyfaq/translations/language_fr.php
@@ -1195,7 +1195,7 @@
// added v2.9.0-RC - 2016-02-19 by Thorsten
$PMF_LANG["ad_admin_notes"] = "Notes privées";
-$PMF_LANG["ad_admin_notes_hint"] = "%s (visible seulement pour les éditeurs)";
+$PMF_LANG["ad_admin_notes_hint"] = " (visible seulement pour les éditeurs)";
// added v2.9.10 - 2018-02-17 by Thorsten
$PMF_LANG["ad_quick_entry"] = "Ajouter une nouvelle FAQ dans cette catégorie";
diff --git a/phpmyfaq/translations/language_ja.php b/phpmyfaq/translations/language_ja.php
index 53b39c32b9..47cced255a 100644
--- a/phpmyfaq/translations/language_ja.php
+++ b/phpmyfaq/translations/language_ja.php
@@ -937,7 +937,7 @@
// added v2.9.0-RC
$PMF_LANG['ad_admin_notes'] = 'プライベートメモ';
-$PMF_LANG['ad_admin_notes_hint'] = '%s (編集者のみ閲覧可)';
+$PMF_LANG['ad_admin_notes_hint'] = ' (編集者のみ閲覧可)';
// added v2.9.10
$PMF_LANG['ad_quick_entry'] = 'このカテゴリーにFAQを追加';
diff --git a/phpmyfaq/translations/language_nl.php b/phpmyfaq/translations/language_nl.php
index c5d00dec53..48ccf88902 100644
--- a/phpmyfaq/translations/language_nl.php
+++ b/phpmyfaq/translations/language_nl.php
@@ -915,7 +915,7 @@
$PMF_LANG['ad_export_generate_json'] = 'Maak JSON bestand aan';
$PMF_LANG['ad_media_name_search'] = 'Zoeken op medianaam';
$PMF_LANG['ad_admin_notes'] = 'Persoonlijke notities';
-$PMF_LANG['ad_admin_notes_hint'] = '%s (alleen zichtbaar voor auteurs)';
+$PMF_LANG['ad_admin_notes_hint'] = ' (alleen zichtbaar voor auteurs)';
$PMF_LANG['msgGoToCategory'] = 'Ga naar categorie';
return $PMF_LANG;
diff --git a/phpmyfaq/translations/language_pl.php b/phpmyfaq/translations/language_pl.php
index 6a00bb5ec9..5ae3c683ea 100644
--- a/phpmyfaq/translations/language_pl.php
+++ b/phpmyfaq/translations/language_pl.php
@@ -1207,7 +1207,7 @@
// added v2.9.0-RC - 2016-02-19 by Thorsten
$PMF_LANG['ad_admin_notes'] = 'Notatki Prywatne';
-$PMF_LANG['ad_admin_notes_hint'] = '%s (widoczne tylko dla redaktorów)';
+$PMF_LANG['ad_admin_notes_hint'] = ' (widoczne tylko dla redaktorów)';
// added v2.9.10 - 2018-02-17 by Thorsten
$PMF_LANG['ad_quick_entry'] = 'Dodaj nowe FAQ w tej kategorii';
diff --git a/phpmyfaq/translations/language_pt-br.php b/phpmyfaq/translations/language_pt-br.php
index 5eaca54aef..9024a8d0cc 100644
--- a/phpmyfaq/translations/language_pt-br.php
+++ b/phpmyfaq/translations/language_pt-br.php
@@ -930,7 +930,7 @@
$PMF_LANG['ad_export_generate_json'] = 'Criar arquivo JSON';
$PMF_LANG['ad_media_name_search'] = 'Buscar por nome da mídia';
$PMF_LANG['ad_admin_notes'] = 'Notas Privadas';
-$PMF_LANG['ad_admin_notes_hint'] = '%s (visível somente para editores)';
+$PMF_LANG['ad_admin_notes_hint'] = ' (visível somente para editores)';
$PMF_LANG['ad_quick_entry'] = 'Adicionar nova FAQ nesta categoria';
$LANG_CONF['ldap.ldap_mapping.name'] = ["input", 'Mapeamento do LDAP para nome, "cn" quando estiver usando um ADS'];
$LANG_CONF['ldap.ldap_mapping.username'] = ["input", 'Mapeamento do LDAP para nome de usuário, "samAccountName" quando estiver usando ADS'];
diff --git a/phpmyfaq/translations/language_tr.php b/phpmyfaq/translations/language_tr.php
index 89d424ea99..724f3602a8 100644
--- a/phpmyfaq/translations/language_tr.php
+++ b/phpmyfaq/translations/language_tr.php
@@ -1166,7 +1166,7 @@
// added v2.9.0-RC - 2016-02-19 by Thorsten
$PMF_LANG['ad_admin_notes'] = "Özel Not";
-$PMF_LANG['ad_admin_notes_hint'] = "%s (yalnızca editörler tarafından görülebilir)";
+$PMF_LANG['ad_admin_notes_hint'] = " (yalnızca editörler tarafından görülebilir)";
// added 2.10.0-alpha - 2016-08-08 by Thorsten
$LANG_CONF['ldap.ldap_mapping.name'] = array('input', 'LDAP mapping for name, "cn" when using an ADS');