From: George B. <gbr...@us...> - 2004-10-22 19:56:07
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1213/class Modified Files: Job.php Log Message: modifications to v1.6 Index: Job.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/class/Job.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Job.php 30 Dec 2003 16:20:57 -0000 1.7 --- Job.php 22 Oct 2004 19:55:15 -0000 1.8 *************** *** 301,307 **** $tags["QUALIFICATIONS"] = $this->_qualifications; } ! $tags["CATEGORY_LABEL"] = $_SESSION['translate']->it("Category"); // get a list of the categories for this position from FatCat $tags["CATEGORY"] = $_SESSION['OBJ_fatcat']->fatcatLinks($this->getId(), "jobman"); if ($GLOBALS["core"]->version < "0.9.3-2") { --- 301,311 ---- $tags["QUALIFICATIONS"] = $this->_qualifications; } ! $tags["CATEGORY_LABEL"] = $_SESSION['translate']->it("Category") . ":"; // get a list of the categories for this position from FatCat $tags["CATEGORY"] = $_SESSION['OBJ_fatcat']->fatcatLinks($this->getId(), "jobman"); + if (strpos($tags["CATEGORY"], "NA")) { + $tags["CATEGORY_LABEL"] = ""; + $tags["CATEGORY"] = ""; + } if ($GLOBALS["core"]->version < "0.9.3-2") { *************** *** 347,350 **** --- 351,355 ---- // save the category $element_link = "index.php?module=jobman&JOB_MAN_op=sView&JOB_id=" . $this->getId(); + $_SESSION['OBJ_fatcat']->purge($this->getId(), "jobman"); $_SESSION['OBJ_fatcat']->saveSelect($this->getLabel(), $element_link, $this->getId()); |