Skip to content
Snippets Groups Projects
Commit 2e3f459f authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3017555: Changed [Varbase] Components dependencies on install: enable...

Issue #3017555: Changed [Varbase] Components dependencies on install: enable or dependencies: enable of modules in the .info.yml and composer.json to have tilde Version Range (~)
parent 3b8cd0be
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,7 @@ class ConfigureMultilingualForm extends FormBase {
// Get list of selected multilingual languages.
$multilingual_languages = $form_state->getValue('multilingual_languages');
if (isset($multilingual_languages)
&& is_array($multilingual_languages)
&& count($multilingual_languages) > 0) {
$multilingual_languages = array_filter($multilingual_languages);
}
......
......@@ -326,8 +326,11 @@ function varbase_configure_multilingual(array &$install_state) {
// Add all selected languages and then translatvarbase_hide_messagesion
// will fetched for theme.
foreach ($install_state['varbase']['multilingual_languages'] as $language_code) {
$batch['operations'][] = ['varbase_configure_language_and_fetch_traslation', (array) $language_code];
if (isset($install_state['varbase']['multilingual_languages'])
&& is_array($install_state['varbase']['multilingual_languages'])) {
foreach ($install_state['varbase']['multilingual_languages'] as $language_code) {
$batch['operations'][] = ['varbase_configure_language_and_fetch_traslation', (array) $language_code];
}
}
// Hide Wornings and status messages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment