Closed (fixed)
Project:
Contact directory
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Apr 2005 at 15:57 UTC
Updated:
9 May 2005 at 16:25 UTC
Like the module. Found the following bug when upgrading to drupal 4.6 rc (4/12/05).
When running a search, the returned tabs are as follows:
<div class="tabs"><ul class="tabs primary">
<li><a href="/?q=search/contact_dir/pamp"><form
action="/ideas/?q=search/node/pamp" method="post">
<div class="form-item"> <label
for="edit-contact_name">contact name:</label><br />
<input type="text" maxlength="100" class="form-text"
name="edit[contact_name]" id="edit-contact_name" size="30" value=""
/> <div class="description">All or part of the contact
name</div>
</div>
<div class="form-item"> <label
for="edit-category_code">category:</label><br />
<select name="edit[category_code]"
id="edit-category_code"><option value="0"
selected="selected">[Select]</option><option
value="2">Morris Communications Corporation</option><option
value="1">Morris Digital Works</option></select> <div
class="description">The contact's category</div>
</div>
<input type="submit" class="form-submit" name="op" value="Search"
/>
</form>
</a></li>
<li class="active"><a href="/?q=search/node/pamp" class="active">content</a></li>
<li><a href="/?q=search/user/pamp">users</a></li>
</ul>
</div>
In the case of a similar problem, the answer was "In 4.6, the function l() takes an additional argument indicating whether the title is html or not. This defaults to FALSE, meaning it is plain text."
Have not tested/attempted.
Comments
Comment #1
bomarmonk commentedWell, the contact directory just got updated in CVS with a note that it is compatible with Drupal 4.6. Unfortunately, when I run the module with 4.6 I get the following error:
The code around that line is:
The line that starts with "foreach" is line 401. I'm not sure what the problem is! But thanks to whoever is working on this for 4.6. I look forward to using it.
Comment #2
jtite commentedThe search_hook was fixed to be compatible with Drupla 4.6.
Comment #3
bomarmonk commentedPlease read my latest error report above: this error occured after the latest CVS updated module was installed (today 4/20/2005).
Comment #4
bomarmonk commentedThere must have been something wrong with my installation of the module-- after deleting the database tables and reinstalling a fresh copy, everything works fine.
Comment #5
bomarmonk commentedOkay, I guess it really is a bug still! It only occurs when no categories have been created, so I'm assuming something has to be added to the code in order to handle an empty or null string from the contact_categories table.
Comment #6
bomarmonk commentedAdding new bug for latest 4.6 problem (so that it won't be mistaken for the search issue at top of this thread).
Comment #7
(not verified) commentedComment #8
kennyg commentedInstalled drupal and contact_dir from cvs. Get this error - all other modules disabled. Same on any theme,
Don't know if this is related to this same problem.