Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove warnings and generate probabilities programmatically instead o…

…f relying on type derivation
  • Loading branch information...
commit 20ccb5f1670200d7c0720b9278617d26ea179445 1 parent f488d41
@emitya emitya authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  Data/Opportunities.php
  2. +1 −1  DataTool.php
View
2  Data/Opportunities.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
2  DataTool.php
@@ -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'])){
Please sign in to comment.
Something went wrong with that request. Please try again.