groups/patches/0003-fix-og-subscribe-link-classes.patch
Marton Kiss 20ef08a6e0 Organic groups patch to fix class override bug in subscription field
Organic groups 2.7 and actual dev version contain a bug that overrides
subscription field classes when it contains another #option attribute
insted of merge. drupal.org.make og module contains the local patch
until this bug is fixed in a stable upstream release.

Change-Id: Ic729e368c1eb07b56feef187bf3e1fe4c2cc31a2
2014-10-29 07:35:39 +01:00

15 lines
758 B
Diff

diff -Naur og.orig/og_ui/og_ui.module og/og_ui/og_ui.module
--- og.orig/og_ui/og_ui.module 2014-10-27 16:43:19.000000000 +0100
+++ og/og_ui/og_ui.module 2014-10-27 16:45:02.000000000 +0100
@@ -694,7 +694,9 @@
}
if (!empty($links['title'])) {
- $links += array('options' => array('attributes' => array('title' => $links['title'], 'class' => array($links['class']))));
+ // Patch upstream, we need array_merge_recursive here.
+ $links_options = array('options' => array('attributes' => array('title' => $links['title'], 'class' => array($links['class']))));
+ $links = array_merge_recursive($links, $links_options);
$element[0] = array(
'#type' => 'link',
'#title' => $links['title'],