BUG 9388 Case nr. and Title configurables para que pueda o no aparecer...SOLVED
- En los dynaforms, en la parte de arriba se despliega el Case # y el Title:. Esta linea o conjunto de datos deberia tener algun tipo de identificacion pues algunos proyectos o no lo utilizan o no sirve de mucha referencia. Se deberia anadir un identificador para que se pueda controlar si es pertinente que se despliegue en los formularios o no. - Adding option for active/deactive title and case number when run case.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
* @author Everth S. Berrios Morales <everth@colosa.com>
|
||||
*
|
||||
*/
|
||||
require_once 'classes/model/Process.php';
|
||||
if (!isset($_SESSION['PROCESS'])) {
|
||||
G::header('location: login');
|
||||
}
|
||||
@@ -38,6 +39,14 @@
|
||||
require_once 'classes/model/CaseTracker.php';
|
||||
$oCaseTracker = new CaseTracker();
|
||||
$aCaseTracker = $oCaseTracker->load($_SESSION['PROCESS']);
|
||||
|
||||
$idProcess = $_SESSION['PROCESS'];
|
||||
$oProcess = new Process();
|
||||
$aProcessFieds = $oProcess->load($idProcess);
|
||||
$noShowTitle = 0;
|
||||
if(isset($aProcessFieds['PRO_SHOW_MESSAGE'])) {
|
||||
$noShowTitle = $aProcessFieds['PRO_SHOW_MESSAGE'];
|
||||
}
|
||||
switch (($aCaseTracker['CT_MAP_TYPE'])) {
|
||||
case 'NONE':
|
||||
//Nothing
|
||||
@@ -57,7 +66,9 @@
|
||||
$oTemplatePower = new TemplatePower(PATH_TPL . 'processes/processes_Map.html');
|
||||
$oTemplatePower->prepare();
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
||||
if ($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
||||
}
|
||||
$G_PUBLISH->AddContent('template', '', '', '', $oTemplatePower);
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptCode('
|
||||
@@ -138,7 +149,9 @@
|
||||
$oTemplatePower = new TemplatePower(PATH_TPL . 'tracker/stages_Map.html');
|
||||
$oTemplatePower->prepare();
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
||||
if ($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $aFields);
|
||||
}
|
||||
$G_PUBLISH->AddContent('template', '', '', '', $oTemplatePower);
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptCode('
|
||||
|
||||
Reference in New Issue
Block a user