Group node create forms always show the label of the Body field as "Welcome message" even if it was set to something else in the content type. This is from a typo in the module (one = instead of two). Fix attached.

Comments

torne’s picture

Er, okay, apparently not attached. The form doesn't seem to do anything when i hit the Attach button. So:

Sat Dec 1 23:53:03 GMT 2007 Torne
* og: fix the welcome message title always being overridden
diff -rN -u old-dev/sites/all/modules/og/og.module new-dev/sites/all/modules/og/og.module
--- old-dev/sites/all/modules/og/og.module 2007-12-01 23:58:05.000000000 +0000
+++ new-dev/sites/all/modules/og/og.module 2007-12-01 23:58:05.000000000 +0000
@@ -1414,7 +1414,7 @@
$form = array_merge($form, og_group_form($node));

// Don't trample on custom label.
- if ($form['body_filter']['body']['#title'] = t('Body')) {
+ if ($form['body_filter']['body']['#title'] == t('Body')) {
$form['body_filter']['body']['#title'] = t('Mission statement');
$form['body_filter']['body']['#description'] = t('A welcome greeting for your group home page. Consider listing the group objectives and mission.');
}

moshe weitzman’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

thats been fixed already in HEAD and DRUPAL-5