Merge pull request #1305 from marcoAntonioNina/BUG-10743

BUG 10743 Nos muestra un fatal error el... SOLVED
This commit is contained in:
julceslauhub
2013-02-08 09:27:41 -08:00
3 changed files with 16 additions and 8 deletions

View File

@@ -974,7 +974,7 @@ class Cases
$oReportTables->updateTables($appFields['PRO_UID'], $sAppUid, $Fields['APP_NUMBER'], $aApplicationFields); $oReportTables->updateTables($appFields['PRO_UID'], $sAppUid, $Fields['APP_NUMBER'], $aApplicationFields);
$addtionalTables->updateReportTables( $addtionalTables->updateReportTables(
$appFields['PRO_UID'], $sAppUid, $Fields['APP_NUMBER'], $aApplicationFields $appFields['PRO_UID'], $sAppUid, $Fields['APP_NUMBER'], $aApplicationFields, $Fields['APP_STATUS']
); );
//now update the priority in appdelegation table, using the defined variable in task //now update the priority in appdelegation table, using the defined variable in task

View File

@@ -674,7 +674,7 @@ class AdditionalTables extends BaseAdditionalTables
* @param string $appNumber * @param string $appNumber
* @param string $caseData * @param string $caseData
*/ */
public function updateReportTables($proUid, $appUid, $appNumber, $caseData) public function updateReportTables($proUid, $appUid, $appNumber, $caseData, $appStatus)
{ {
G::loadClass('pmTable'); G::loadClass('pmTable');
//get all Active Report Tables //get all Active Report Tables
@@ -739,6 +739,7 @@ class AdditionalTables extends BaseAdditionalTables
// if the record already exists on the report table // if the record already exists on the report table
foreach ($records as $record) { foreach ($records as $record) {
//update all records //update all records
$record->setAppStatus($appStatus);
$record->fromArray(array_change_key_case($caseData, CASE_UPPER), BasePeer::TYPE_FIELDNAME); $record->fromArray(array_change_key_case($caseData, CASE_UPPER), BasePeer::TYPE_FIELDNAME);
if ($record->validate()) { if ($record->validate()) {
$record->save(); $record->save();
@@ -750,6 +751,7 @@ class AdditionalTables extends BaseAdditionalTables
$obj->fromArray(array_change_key_case($caseData, CASE_UPPER), BasePeer::TYPE_FIELDNAME); $obj->fromArray(array_change_key_case($caseData, CASE_UPPER), BasePeer::TYPE_FIELDNAME);
$obj->setAppUid($appUid); $obj->setAppUid($appUid);
$obj->setAppNumber($appNumber); $obj->setAppNumber($appNumber);
$obj->setAppStatus($appStatus);
$obj->save(); $obj->save();
} }
break; break;

View File

@@ -240,30 +240,36 @@ Ext.onReady(function(){
{ {
id: 'uid', id: 'uid',
dataIndex: 'uid', dataIndex: 'uid',
hidden: true hidden: true,
hideable:false
}, },
{ {
dataIndex: '_index', dataIndex: '_index',
hidden: true hidden: true,
hideable:false
}, },
{ {
dataIndex: '_isset', dataIndex: '_isset',
hidden: true hidden: true,
hideable:false
}, },
{ {
id: 'field_uid', id: 'field_uid',
dataIndex: 'field_uid', dataIndex: 'field_uid',
hidden: true hidden: true,
hideable:false
}, },
{ {
id: 'field_key', id: 'field_key',
dataIndex: 'field_key', dataIndex: 'field_key',
hidden: true hidden: true,
hideable:false
}, },
{ {
id: 'field_null', id: 'field_null',
dataIndex: 'field_null', dataIndex: 'field_null',
hidden: true hidden: true,
hideable:false
}, },
{ {
id: 'field_dyn', id: 'field_dyn',