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
parent 6ecb8c3e45
commit 70fa7efe4c
5 changed files with 15 additions and 9 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();

View File

@@ -600,7 +600,7 @@ var processmap=function(){
this.tmp.caseTrackerPanel = panel =new leimnud.module.panel();
panel.options={
limit :true,
size :{w:300,h:180},
size :{w:300,h:200},
position:{x:50,y:50,center:true},
title :G_STRINGS.ID_CASE_TRACKER,
theme :this.options.theme,
@@ -2472,7 +2472,7 @@ processmap.prototype={
height:25
});
} catch(e) {
}
}

View File

@@ -452,8 +452,8 @@ stagesmap.prototype={
this.panels.editor=new leimnud.module.panel();
this.panels.editor.options={
limit:true,
size:{w:this.options.size.w,h:this.options.size.h},
position:{x:200,y:0,centerX:true},
size:{w:this.options.size.w,h:this.options.size.h - 10},
position:{x:0,y:0},
title:"",
titleBar:false,
control:{