BUG 8660 Problems in Case Tracker SOLVED

- The first problem, when the tab diagram showing the map did not hide when you selected the option NONE, and when they entered a white screen is displayed, the error speak second to show the dynaforms not present a session variable the which was shown as a notice.
- To display dinaforms valid only in the XmlForm class, and q if you increase the session showed the Dynaform across the page, to edit the first problem is how to obtain permits in class case by changing the role permission caseTrackerPermissions addition to improving function, also modified the way to generate depending on the function menu caseTrackerPermissions also modified the authentication to lead the tab corresponding to the relevant validations.
This commit is contained in:
Marco Antonio Nina
2012-03-08 11:11:47 -04:00
parent 20e11d747d
commit fadec156e5
7 changed files with 187 additions and 227 deletions

View File

@@ -4595,36 +4595,26 @@ class Cases {
}
/*
* funcion permisos, by Everth
* funcion caseTrackerPermissions, by Everth
*
* @name Permisos
* @name caseTrackerPermissions
* @param string $PRO_UID
* @return string
*/
function Permisos($PRO_UID) {
$a = 0;
$b = 0;
$c = 0;
$d = 0;
$oCaseTracker = new CaseTracker();
$aCaseTracker = $oCaseTracker->load($PRO_UID);
if (is_array($aCaseTracker)) {
if ($aCaseTracker['CT_MAP_TYPE'] != 'NONE')
$a = 1;
function caseTrackerPermissions($PRO_UID) {
$newCaseTracker = new CaseTracker();
$caseTracker = $newCaseTracker->load($PRO_UID);
if (is_array($caseTracker)) {
$caseTracker['CT_MAP_TYPE'] = ($caseTracker['CT_MAP_TYPE'] != 'NONE')? true : false;
//$caseTracker['CT_DERIVATION_HISTORY'] = ($caseTracker['CT_DERIVATION_HISTORY'] == 1)? true : false;
//$caseTracker['CT_MESSAGE_HISTORY'] = ($caseTracker['CT_MESSAGE_HISTORY'] == 1)? true : false;
$oCriteria = new Criteria();
$oCriteria->add(CaseTrackerObjectPeer::PRO_UID, $PRO_UID);
if (CaseTrackerObjectPeer::doCount($oCriteria) > 0)
$b = 1;
if ($aCaseTracker['CT_DERIVATION_HISTORY'] == 1)
$c = 1;
if ($aCaseTracker['CT_MESSAGE_HISTORY'] == 1)
$d = 1;
$criteria = new Criteria();
$criteria->add(CaseTrackerObjectPeer::PRO_UID, $PRO_UID);
$caseTracker['DYNADOC'] = (CaseTrackerObjectPeer::doCount($criteria) > 0)? true : false;
}
return $a . '-' . $b . '-' . $c . '-' . $d;
return $caseTracker;
}
/*