I have a fresh install of casetracker on a drupal-6.14 site and I have enabled the modules, "Case Tracker", "CT Actions", "CT Basic" and "CT Mail". I have also installed organic groups 6.x-2.0. I've configured casetracker to use "Group" as its project node type and "Case".

When I attempt to create a new case, the "Create Case" form appears without a title field. When I submit the case with some test information, the form is returned with a "Title field is required" error and the title field itself is now shown. I can add text to it, submit the form and it works.

When I view the raw source for the text field, the form-item for title it looks like:

<div class="form-item" id="edit-title-wrapper">
<label for="edit-title">blahTitle: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="128" name="title" id="edit-title" size="60" value="" class="form-text required error" />
</div>

When I inspect the form using either firefox or safari's page inspector tools, I see:

<div id="edit-title-wrapper" class="form-item" style="display: none;">

I'm having a bit of trouble figuring out where the style element is coming from. I assume it must be from some javascript included into the page, but haven't been able to locate where this might happen.

Comments

jcolbyk’s picture

I've taken the entire set of files returned for the create page and saved them to disk (this includes all of the js/css and the raw html) via save page in firefox. I then moved the ~20 js files out of the way individually and reloaded the page. I've narrowed this down to the following javascript:

dependent.js drupal.js jquery.js

If any of these three are moved, then the title appears (i.e. the tag is not modified to include style="display:none;"). None of the other content types on the site have a problem with the title not being displayed, so, I'm mystified as to why this particular one gets the display:none applied. Now sifting through those javascript files to figure out why on earth they're applying the none tag...

jcolbyk’s picture

I've narrowed this further to dependent.js:

if (Drupal.settings.viewsAjax.formRelationships[id].num <= len) {
// Show if the element if criteria is matched
object.show(0);
}
else {
// Otherwise hide
object.hide(0);
}

jcolbyk’s picture

Further digging, shows that dependent.js is related to views administrative screens and should not be getting included on the create form for casetracker_basic_case. When I create different content types, and go to their create forms, the dependent.js file does not end up being included, this seems specific to casetracker and my setup, not sure why it's being included yet....

jcolbyk’s picture

Assigned: Unassigned » jcolbyk
Status: Active » Closed (fixed)

I have tracked this down to old information left in a database from a drupal 5.x install that I migrated to drupal 6.x, first uninstalling all 5.x modules on that old installation (including the 5.x casetracker I had been using). It appears that casetracker did not completely clean up after itself (for example, there were values left in the variable table). It appears that the 6.x version of casetracker still leaves behind this sort of mess even after going through the steps to uninstall the casetracker module. I'm filing a separate issue on that, see: http://drupal.org/node/606974

izmeez’s picture

subscribing

jmiccolis’s picture

@jcolbyk thanks for taking the time to track down the issue here, and for filing the ticket about the current uninstall issues.

One thing to be aware of is that CT mail is relatively untested and is the primary reason I haven't tagged a stable release for D6. If you use it patches and feedback are most welcome.