Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By CJaramillo
#782769
Hello everyone


The problem that i have is when i go to case tracker, then message history and click on "view" button; it show me the html template that i created to that message, but it show it 2 times, like the image show.

Image


I tried to find out the xml code that make that task. the i found two:

First one on: \workflow\engine\xmlform\tracker\tracker_MessagesView.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlform" name="" width="1280" menu="">
  <menuTra type="xmlmenu" xmlfile="tracker/tracker_back">
    <en/>
  </menuTra>
  <title type="title">
    <en>MESSAGE</en>
    <es><![CDATA[Mensaje]]></es>
  </title>
  <APP_MSG_SUBJECT type="text" mode="view">
    <en>SUBJECT</en>
    <es><![CDATA[Asunto]]></es>
  </APP_MSG_SUBJECT>
  <APP_MSG_FROM type="text" mode="view">
    <en>FROM</en>
    <es><![CDATA[De]]></es>
  </APP_MSG_FROM>
  <APP_MSG_TO type="text" mode="view">
    <en>TO</en>
    <es><![CDATA[Para]]></es>
  </APP_MSG_TO>
  <APP_MSG_DATE type="text" mode="view">
    <en>DATE</en>
    <es><![CDATA[Fecha]]></es>
  </APP_MSG_DATE>
  
  <APP_MSG_BODY type="text" cols="100" rows="10" mode="view" enableHtml="1">
    <en/>
    <es><![CDATA[]]></es>
  </APP_MSG_BODY>
</dynaForm>
Second one on: workflow\engine\methods\tracker\tracker_MessagesView.php
Code: Select all
<?php
/**
 * tracker_MessagesView.php
 *
 * ProcessMaker Open Source Edition
 * Copyright (C) 2004 - 2008 Colosa Inc.23
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 */

/*
* Messages for Case Tracker
*
* @author Everth S. Berrios Morales <everth@colosa.com>
*
*/
if (! isset( $_SESSION['PROCESS'] )) {
    G::header( 'location: login' );
}
$G_MAIN_MENU = 'caseTracker';
$G_ID_MENU_SELECTED = 'MESSAGES';

G::LoadClass( "case" );
$Fields = Cases::getHistoryMessagesTrackerView( $_GET['APP_UID'], $_GET['APP_MSG_UID'] );

$G_PUBLISH = new Publisher();

$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'tracker/tracker_MessagesView', '', $Fields );
G::RenderPage( 'publish' );

I couldn´t find out where is the problem, so i ask for any help that you can give to me.
User avatar
By liliana
#782888
Thanks for the info.

The problem seems to be your PHP and MySql version, we do not have support for those version. Here you can find the Supported stacks for version 2.5.

Is it possible for you to downgrade both versions?

ICO software script is a pre-made program for crea[…]

A crypto exchange script is a pre-designed softwar[…]

So I recently bought an addmotor Ebike which of co[…]

A crypto casino clone script is a ready-made softw[…]