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:
@@ -186,12 +186,17 @@
|
||||
$array['CASE'] = G::LoadTranslation('ID_CASE');
|
||||
$array['TITLE'] = G::LoadTranslation('ID_TITLE');
|
||||
|
||||
$noShowTitle = 0;
|
||||
if(isset($oProcessFieds['PRO_SHOW_MESSAGE'])) {
|
||||
$noShowTitle = $oProcessFieds['PRO_SHOW_MESSAGE'];
|
||||
}
|
||||
|
||||
switch ($_GET['TYPE'])
|
||||
{
|
||||
case 'DYNAFORM':
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
|
||||
|
||||
if($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
|
||||
}
|
||||
if (!$aPreviousStep) {
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['PREVIOUS_STEP_LABEL'] = '';
|
||||
}
|
||||
@@ -225,8 +230,9 @@
|
||||
break;
|
||||
|
||||
case 'INPUT_DOCUMENT':
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
|
||||
|
||||
if($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
|
||||
}
|
||||
$oInputDocument = new InputDocument();
|
||||
$Fields = $oInputDocument->load($_GET['UID']);
|
||||
if (!$aPreviousStep) {
|
||||
@@ -617,8 +623,9 @@
|
||||
die;
|
||||
break;
|
||||
case 'VIEW':
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
|
||||
|
||||
if($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
|
||||
}
|
||||
require_once 'classes/model/AppDocument.php';
|
||||
$oAppDocument = new AppDocument();
|
||||
$lastVersion=$oAppDocument->getLastAppDocVersion($_GET['DOC'],$_SESSION['APPLICATION']);
|
||||
@@ -975,8 +982,9 @@
|
||||
*/
|
||||
break;
|
||||
case 'EXTERNAL':
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
|
||||
|
||||
if($noShowTitle == 0) {
|
||||
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
|
||||
}
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$externalSteps = $oPluginRegistry->getSteps();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user