BUG 0000 "PM Table, keep the records of the table to the edit" SOLVED

- PM Table, keep the records of the table to the edit
- Added checkbox for keep the records of the table
* Available from version ProcessMaker-2.0.46
This commit is contained in:
Victor Saisa Lopez
2013-01-09 13:23:16 -04:00
parent 08cd5ae5ff
commit fbb10c8ed1
4 changed files with 115 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
<?php
/**
* pmTablesProxy
*
@@ -196,8 +195,8 @@ class pmTablesProxy extends HttpProxyController
*/
public function save ($httpData, $alterTable = true)
{
require_once 'classes/model/AdditionalTables.php';
require_once 'classes/model/Fields.php';
//require_once 'classes/model/AdditionalTables.php';
//require_once 'classes/model/Fields.php';
try {
ob_start();
@@ -273,12 +272,18 @@ class pmTablesProxy extends HttpProxyController
}
}
G::loadClass( 'pmTable' );
G::LoadClass("pmTable");
$pmTable = new pmTable( $data['REP_TAB_NAME'] );
$pmTable->setDataSource( $data['REP_TAB_CONNECTION'] );
$pmTable->setColumns( $columns );
$pmTable->setAlterTable( $alterTable );
if (isset($data["keepData"]) && $data["keepData"] == 1) {
//PM Table
$pmTable->setKeepData(true);
}
$pmTable->build();
$buildResult = ob_get_contents();