This bug affects the project module on Drupal.org.

When trying to create or edit a project you receive the following error upon submitting the form:

"You have to specify a valid CVS directory."

There is no field to specify a valid CVS directory.

Didn't have the chance to look and see if this field was taken out on purpose and the validation code left in unnecessarily, or if the field was accidentally deleted from the form or some other weirdness.

Comments

nedjo’s picture

Project: Project » CVS integration
Version: x.y.z » 6.x-1.x-dev
Component: Projects » Code

This error is generated by the CVS module. It looks like the directory field is not registering properly.

nedjo’s picture

Title: Cannot edit or create a project » Missing field generates error on project editing page
Assigned: Unassigned » nedjo
Status: Active » Needs review
StatusFileSize
new2.88 KB

The fieldset that includes the cvs directory wasn't being added to the project editing form. Looks like we've dropped the 'form' hook_nodeapi() op. Attached patch uses a hook_form_alter() instead, reinstating this fieldset.

killes@www.drop.org’s picture

I've been testing it, but for some reason the cvs fields don't get preselected.

nedjo’s picture

StatusFileSize
new1.72 KB

We need to load the $node in a form_alter. Here's another try.

It seems an awkward way to have to alter node forms, though. Can anyone confirm that the 'form' op was removed from hook_nodeapi()? Is a _form_alter() the expected replacement?

killes@www.drop.org’s picture

Wasn't there a $form[#node] thing? Adrian already committed your previous patch.

killes@www.drop.org’s picture

Status: Needs review » Fixed

yep, that fixed it

Anonymous’s picture

Status: Fixed » Closed (fixed)