Merge pull request #1305 from marcoAntonioNina/BUG-10743
BUG 10743 Nos muestra un fatal error el... SOLVED
This commit is contained in:
@@ -974,7 +974,7 @@ class Cases
|
||||
|
||||
$oReportTables->updateTables($appFields['PRO_UID'], $sAppUid, $Fields['APP_NUMBER'], $aApplicationFields);
|
||||
$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
|
||||
|
||||
@@ -674,7 +674,7 @@ class AdditionalTables extends BaseAdditionalTables
|
||||
* @param string $appNumber
|
||||
* @param string $caseData
|
||||
*/
|
||||
public function updateReportTables($proUid, $appUid, $appNumber, $caseData)
|
||||
public function updateReportTables($proUid, $appUid, $appNumber, $caseData, $appStatus)
|
||||
{
|
||||
G::loadClass('pmTable');
|
||||
//get all Active Report Tables
|
||||
@@ -739,6 +739,7 @@ class AdditionalTables extends BaseAdditionalTables
|
||||
// if the record already exists on the report table
|
||||
foreach ($records as $record) {
|
||||
//update all records
|
||||
$record->setAppStatus($appStatus);
|
||||
$record->fromArray(array_change_key_case($caseData, CASE_UPPER), BasePeer::TYPE_FIELDNAME);
|
||||
if ($record->validate()) {
|
||||
$record->save();
|
||||
@@ -750,6 +751,7 @@ class AdditionalTables extends BaseAdditionalTables
|
||||
$obj->fromArray(array_change_key_case($caseData, CASE_UPPER), BasePeer::TYPE_FIELDNAME);
|
||||
$obj->setAppUid($appUid);
|
||||
$obj->setAppNumber($appNumber);
|
||||
$obj->setAppStatus($appStatus);
|
||||
$obj->save();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -240,30 +240,36 @@ Ext.onReady(function(){
|
||||
{
|
||||
id: 'uid',
|
||||
dataIndex: 'uid',
|
||||
hidden: true
|
||||
hidden: true,
|
||||
hideable:false
|
||||
},
|
||||
{
|
||||
dataIndex: '_index',
|
||||
hidden: true
|
||||
hidden: true,
|
||||
hideable:false
|
||||
},
|
||||
{
|
||||
dataIndex: '_isset',
|
||||
hidden: true
|
||||
hidden: true,
|
||||
hideable:false
|
||||
},
|
||||
{
|
||||
id: 'field_uid',
|
||||
dataIndex: 'field_uid',
|
||||
hidden: true
|
||||
hidden: true,
|
||||
hideable:false
|
||||
},
|
||||
{
|
||||
id: 'field_key',
|
||||
dataIndex: 'field_key',
|
||||
hidden: true
|
||||
hidden: true,
|
||||
hideable:false
|
||||
},
|
||||
{
|
||||
id: 'field_null',
|
||||
dataIndex: 'field_null',
|
||||
hidden: true
|
||||
hidden: true,
|
||||
hideable:false
|
||||
},
|
||||
{
|
||||
id: 'field_dyn',
|
||||
|
||||
Reference in New Issue
Block a user