Cannot cancel and reapply

rismondo - July 7, 2009 - 08:01
Project:Job Search
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I've tested Job Search, patched as per http://drupal.org/node/391774#comment-1777452.

It might happen that a user applies to a job, than cancels the application in a hurry since something was forgotten.
In that case, however, it becomes impossible for the user to apply again, after fixing whatever needed to be fixed, since the system will say "you already applied for this job" even after cancellation.

I believe the condition should be reset if the cancellation originates by the original applicant, so that a new application can be made at a later time if needed. Alternatively, or in addition, a confirmation page would really be useful during the job application process.

#1

RyanJLind - October 29, 2009 - 18:55

I was able to fix this by changing the job_check function in job.module:

OLD:

return db_result(db_query("SELECT COUNT(*) FROM {job} WHERE nid = %d AND uid = %d" , $nid, $uid));

NEW:

return db_result(db_query("SELECT COUNT(*) FROM {job} WHERE nid = %d AND uid = %d AND status=1" , $nid, $uid));

 
 

Drupal is a registered trademark of Dries Buytaert.