Skip to content
Snippets Groups Projects

Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers

Open Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers
2 unresolved threads
Open Ben Mullins requested to merge issue/drupal-2845319:2845319-the-highlighting-of into 9.3.x
2 unresolved threads
2 files
+ 27
2
Compare changes
  • Side-by-side
  • Inline
Files
2
  • a6b5766a
    Issue #2774399 by mohit_aghera, joebot, Munavijayalakshmi, rensingh99,... · a6b5766a
    catch authored
    Issue #2774399 by mohit_aghera, joebot, Munavijayalakshmi, rensingh99, borisson_, Chi, quietone: Fatal error on accessing module uninstall page with Forum enabled
    
    (cherry picked from commit b3af2575)
@@ -58,7 +58,7 @@ public function validate($module) {
@@ -58,7 +58,7 @@ public function validate($module) {
}
}
$vocabulary = $this->getForumVocabulary();
$vocabulary = $this->getForumVocabulary();
if ($this->hasTermsForVocabulary($vocabulary)) {
if (!empty($vocabulary) && $this->hasTermsForVocabulary($vocabulary)) {
if ($vocabulary->access('view')) {
if ($vocabulary->access('view')) {
$reasons[] = $this->t('To uninstall Forum, first delete all <a href=":url">%vocabulary</a> terms', [
$reasons[] = $this->t('To uninstall Forum, first delete all <a href=":url">%vocabulary</a> terms', [
'%vocabulary' => $vocabulary->label(),
'%vocabulary' => $vocabulary->label(),
@@ -117,7 +117,12 @@ protected function hasTermsForVocabulary(VocabularyInterface $vocabulary) {
@@ -117,7 +117,12 @@ protected function hasTermsForVocabulary(VocabularyInterface $vocabulary) {
*/
*/
protected function getForumVocabulary() {
protected function getForumVocabulary() {
$vid = $this->configFactory->get('forum.settings')->get('vocabulary');
$vid = $this->configFactory->get('forum.settings')->get('vocabulary');
return $this->entityTypeManager->getStorage('taxonomy_vocabulary')->load($vid);
if (!empty($vid)) {
 
return $this->entityTypeManager->getStorage('taxonomy_vocabulary')->load($vid);
 
}
 
else {
 
return NULL;
 
}
}
}
}
}
Loading