Update of /cvsroot/phpwebsite-comm/modules/staffman/class
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30073/class
Modified Files:
staff.php
Log Message:
modifications to v1.5
Index: staff.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/staffman/class/staff.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** staff.php 6 Jan 2004 20:26:55 -0000 1.3
--- staff.php 22 Oct 2004 19:38:56 -0000 1.4
***************
*** 300,303 ****
--- 300,307 ----
// get a list of the categories for this position from FatCat
$tags["CATEGORY"] = $_SESSION['OBJ_fatcat']->fatcatLinks($this->getId(), "staffman");
+ // don't list 'NA'
+ if (strpos($tags["CATEGORY"], "NA")) {
+ $tags["CATEGORY"] = "";
+ }
if ($this->_photo) {
***************
*** 431,435 ****
// save the category
! $element_link = "index.php?module=staffman&STAFF_MAN_op=sView&staffmember_id=" . $this->getId();
$_SESSION['OBJ_fatcat']->saveSelect($this->getLabel(), $element_link, $this->getId());
--- 435,441 ----
// save the category
! $element_link = "index.php?module=staffman&STAFF_MAN_op=sView&STAFF_id=" . $this->getId();
! // remove old categories first
! $_SESSION['OBJ_fatcat']->purge($this->getId(), "staffman");
$_SESSION['OBJ_fatcat']->saveSelect($this->getLabel(), $element_link, $this->getId());
|