Clean install of

Conditional Fields 6.x-1.x-dev
CCK 2.x dev
D6 dev

All from CVS

And I get the following error immediately after the modules are activated:

notice: Undefined index: type in /Applications/XAMPP/xamppfiles/htdocs/drupal6dev/drupal/sites/all/modules/conditional_fields-DRUPAL-6--1/conditional_fields.module on line 275.
CommentFileSizeAuthor
#2 472446.patch1.8 KBjim0203

Comments

jim0203’s picture

This occurs when hook_form_alter() is called with

$form_id = $form['type']['#value'] . '_node_form'

The problem arises when $form isn't loaded - that is, when a form isn't being displayed: hook_form_alter() still gets called and $form isn't set.

I don't know the best way to patch this - this is my first real look at the code - but that's what the problem seems to be.

jim0203’s picture

StatusFileSize
new1.8 KB
jim0203’s picture

Status: Active » Needs review
peterpoe’s picture

Status: Needs review » Postponed (maintainer needs more info)

I cannot reproduce this issue. I tired a fresh install (Drupal 6.12, CCK 2.3, Conditional Fields 1.0beta1). Could you be more precise on the situation when this happens to you (which page, after which action), thanks.

peterpoe’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok, I get it: it must be a different level of php error reporting. Committing, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.