BUG 14024 Issue in Case Tracker SOLVED

- Missing validation for fields "CT_DERIVATION_HISTORY" and "CT_MESSAGE_HISTORY", this fields only accepts values 1 and 0
- Add data validation for fields "CT_DERIVATION_HISTORY" and "CT_MESSAGE_HISTORY"
This commit is contained in:
Julio Cesar Laura
2014-04-16 10:15:34 -04:00
committed by Erik Amaru Ortiz
parent 9995582e9f
commit 9d2a5545ce
4 changed files with 11 additions and 5 deletions

View File

@@ -71,6 +71,12 @@ class CaseTracker extends BaseCaseTracker
try {
$oCaseTracker = CaseTrackerPeer::retrieveByPK( $aData['PRO_UID'] );
if (! is_null( $oCaseTracker )) {
if ($aData['CT_DERIVATION_HISTORY'] == '') {
$aData['CT_DERIVATION_HISTORY'] = 0;
}
if ($aData['CT_MESSAGE_HISTORY'] == '') {
$aData['CT_MESSAGE_HISTORY'] = 0;
}
$oCaseTracker->fromArray( $aData, BasePeer::TYPE_FIELDNAME );
if ($oCaseTracker->validate()) {
$oConnection->begin();