Permalink
Browse files

remove warnings and generate probabilities programmatically instead o…

…f relying on type derivation
  • Loading branch information...
1 parent f488d41 commit 20ccb5f1670200d7c0720b9278617d26ea179445 @emitya emitya committed Jan 16, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 Data/Opportunities.php
  2. +1 −1 DataTool.php
@@ -38,3 +38,5 @@
$GLOBALS['dataTool']['Opportunities']['amount'] = array('range'=>array('min'=>500, 'max'=>1000000));
$GLOBALS['dataTool']['Opportunities']['amount_usdollar'] = array('range'=>array('min'=>500, 'max'=>1000000));
$GLOBALS['dataTool']['Opportunities']['account_id'] = array('related'=>array('module'=>'Accounts'));
+$GLOBALS['dataTool']['Opportunities']['probability'] = array('range'=>array('min'=>0, 'max'=>100)); // this is added to deal with IBM SFA customization redefining some type
+
View
@@ -190,7 +190,7 @@ function handleType($typeData, $type, $field, $seed){
return $this->installData['team_set_id'] = $keys[$index];
}
- if(!empty($typeData['value']) || $typeData['value']=="0"){
+ if(!empty($typeData['value']) || (isset($typeData['value']) && $typeData['value']=="0")){
return $typeData['value'];
}
if(!empty($typeData['increment'])){

0 comments on commit 20ccb5f

Please sign in to comment.