Skip to content

Commit 951099b

Browse files
author
Yani0029
committed
Fixing undefined index notices when locale.module is enabled
1 parent f123baa commit 951099b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

os2web_borger_dk.module

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ function os2web_borger_dk_form_alter(&$form, &$form_state, $form_id) {
161161
if ($microarticle) {
162162
$field_microarticle_settings = (isset($form['#node']->os2web_borger_dk_microarticle['field_microarticle_settings'])) ? $form['#node']->os2web_borger_dk_microarticle['field_microarticle_settings'] : NULL;
163163
$body_text = (isset($form['body']['und']['0']['#entity']->body['und']['0']['value'])) ? $form['body']['und']['0']['#entity']->body['und']['0']['value'] : '';
164-
unset($form['body']);
164+
//unset($form['body']);
165+
hide($form['body']);
165166

166167
// Link break: in windows \r\n, linux \n.
167168
preg_match("/<\/div>\n/", $body_text, $link_break);

0 commit comments

Comments
 (0)