Apply for Job Needs to Send User to Create Resume Form

visualnotion - February 23, 2009 - 20:59
Project:Job Search
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Description

When a registered user clicks on the "Apply for this job" link, they are currently sent to the Create Content listing page.

It needs to send the user to the 'Create Resume' form to avoid confusing the user.

I hardcoded the content type 'resume' on lines 183-187:

<?php
 
if (!$resume_list) {
   
$msg = t('Please !create to apply', array('!create' => l(t('create a resume'), 'node/add/resume')));
   
drupal_set_message($msg);
   
drupal_goto("node/$job_nid");
  }
?>

And on line 195

<?php
   
array('!create' => l(t('create a new resume'), "node/add/resume")));
?>

I'm not sure how to go about it, but I think the module should point to whatever content type you've chosen to use for resumes.

#1

kbahey - February 23, 2009 - 21:40
Status:active» needs work

The issue is that assumes that you called the content type "resume". If someone calls it "cv" then that will not work.

We need to make it configurable so that it would use the configured type.

#2

visualnotion - February 23, 2009 - 21:57

Right. I was just explaining what I did in my instance and my last sentence mentioned that it should detect the content type chosen for resumes.

#3

xamount - April 14, 2009 - 14:36

If someone can help submit a patch, I can help test and see that it gets committed...

 
 

Drupal is a registered trademark of Dries Buytaert.