Merged in bugfix/PMCORE-1194 (pull request #8358)

PMCORE-1194

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2022-01-25 21:12:25 +00:00
committed by Julio Cesar Laura Avendaño
5 changed files with 24 additions and 8 deletions

View File

@@ -1846,7 +1846,9 @@ class WsBase
ob_start();
print_r($variables);
$cdata = ob_get_contents();
if (ob_get_contents()) {
ob_end_clean();
}
$up_case = $oCase->updateCase($caseId, $oldFields);
$result = new WsResponse(

View File

@@ -954,7 +954,9 @@ class pmTablesProxy extends HttpProxyController
}
//ob_end_clean is used to close the ob_start opening at the beginning of this method.
if (ob_get_contents()) {
ob_end_clean();
}
return $result;
}

View File

@@ -43,7 +43,9 @@ switch ($request) {
}
$x = ob_get_contents();
if (ob_get_contents()) {
ob_end_clean();
}
///////
if ($_GET["menu"] == "plugins") {

View File

@@ -474,7 +474,9 @@ class ReportTable
$buildResult = ob_get_contents();
if (ob_get_contents()) {
ob_end_clean();
}
//Updating additional table struture information
$addTabData = [
@@ -572,7 +574,9 @@ class ReportTable
} catch (Exception $e) {
$buildResult = ob_get_contents();
if (ob_get_contents()) {
ob_end_clean();
}
$result->success = false;
@@ -833,7 +837,9 @@ class ReportTable
ob_start();
$pmTable->buildModelFor($dbsUid, $tables);
$buildResult = ob_get_contents();
if (ob_get_contents()) {
ob_end_clean();
}
$errors .= $pmTable->upgradeDatabaseFor($pmTable->getDataSource(), $tables);
}

View File

@@ -379,7 +379,9 @@ class Table
}
$pmTable->build();
$buildResult = ob_get_contents();
if (ob_get_contents()) {
ob_end_clean();
}
unset($buildResult);
// Updating additional table struture information
@@ -586,7 +588,9 @@ class Table
$pmTable->build();
$buildResult = ob_get_contents();
if (ob_get_contents()) {
ob_end_clean();
}
unset($buildResult);
$addTabData = [