BUG 6357 this bug was fixed

This issue is happening, this is happening when you create a output document and go back to previous step or leave a case, it created a duplicates and it shows function ereg_replace() is deprecated. I have fixed these and it's working fine, however there are some deprecated errors which are into ..thirdparty/html2ps_pdf, then we are going to wait the solucion from html2ps_pdf
This commit is contained in:
Carlos Pacha
2011-04-05 17:19:09 -04:00
parent 8260c395a2
commit 6dfc05da04
2 changed files with 9 additions and 5 deletions

View File

@@ -1091,8 +1091,8 @@ function PMFGenerateOutputDocument($outputID) {
$oOutputDocument = new OutputDocument();
$aOD = $oOutputDocument->load($outputID);
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
$sFilename = ereg_replace('[^A-Za-z0-9_]', '_', G::replaceDataField($aOD['OUT_DOC_FILENAME'], $Fields['APP_DATA']));
$_GET['UID']=($aOD['OUT_DOC_VERSIONING'])?$_GET['UID']:$aOD['OUT_DOC_UID'];
$sFilename = preg_replace('[^A-Za-z0-9_]', '_', G::replaceDataField($aOD['OUT_DOC_FILENAME'], $Fields['APP_DATA']));
require_once 'classes/model/AppFolder.php';
require_once 'classes/model/AppDocument.php';