1
andycleff
Jobs 1.9 Admin Modification Bug
  • 2005/8/29 20:25

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


Jobs 1.9 is great. Thanks.

Found a minor bug.

When I go to edit a listing via the ops=AnnoncesModAnnonce link (Change a Job Listing), the resulting form displays the data from the Job Description field in the Job Requirements text edit area, not the Job Requirements field data.

Consequently changing the text of "Job Requirements" via the admin interface actually changes the Job Description.

Not sure where to fix this.

BTW, if I edit a listing via the ops=ModJob link (Modify your Job Listing), the form is correct.
Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

http://www.ampersandesign.net

2
andycleff
Re: Jobs 1.9 Admin Modification Bug
  • 2005/8/29 20:42

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


Think I found the general area of the bug...but not the fix.

In jobs/admin/index.php around line 365:
Code currently reads

echo $wysiwyg_requirements_area->render();
} else {
ob_start();
$GLOBALS["description"] = $description;
xoopsCodeTarea("description",30,6);
$xoops_codes_tarea = ob_get_contents();
ob_end_clean();
echo $xoops_codes_tarea;

I tried changing "description" to "requirements" (3x) so that code reads:

echo $wysiwyg_requirements_area->render();
} else {
ob_start();
$GLOBALS["requirements"] = $requirements;
xoopsCodeTarea("requirements",30,6);
$xoops_codes_tarea = ob_get_contents();
ob_end_clean();
echo $xoops_codes_tarea;

But then the Job Requirements field only displays "requirements" and doesn't accept edits.
Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

http://www.ampersandesign.net

3
andycleff
Re: Jobs 1.9 Admin Modification Bug
  • 2005/8/29 20:48

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


Found the problem.

In my editted index.php, I was missing the "$" on
I had $GLOBALS["requirements"] = requirements;
instead of $GLOBALS["requirements"] = $requirements;

So

echo $wysiwyg_requirements_area->render();
} else {
ob_start();
$GLOBALS["requirements"] = $requirements;
xoopsCodeTarea("requirements",30,6);
$xoops_codes_tarea = ob_get_contents();
ob_end_clean();
echo $xoops_codes_tarea;

Does fix the bug.
Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

http://www.ampersandesign.net

4
jlm69
Re: Jobs 1.9 Admin Modification Bug
  • 2005/8/29 21:03

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


andycleff,

I was just going to post when you found it. Thanks for finding that I will fix the download now. I thought I remembered fixing that before, guess not.

Thanks again,

John

5
andycleff
Re: Jobs 1.9 Admin Modification Bug
  • 2005/8/30 11:18

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


Thanks for following up, John.

Jobs 1.9 working fine now. Thanks again for a fine mod.
Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

http://www.ampersandesign.net

Login

Who's Online

341 user(s) are online (277 user(s) are browsing Support Forums)


Members: 0


Guests: 341


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits