this is how it is inside sugar files is not something that i made:
PHP Code:
//include/workflow/field_utils.php line.759
if($meta_array['adv_type']=='value_calc'){
$jang = get_expression($meta_array['ext1'], [B]$focus->$field[/B], $meta_array['value']);
echo $jang;
return $jang;
}
//include/workflow/expressions_utils.php
function get_expression($express_type, $first, $second){
if($express_type=="+"){
return express_add($first, $second);
}
if($express_type=="-"){
return express_subtract($first, $second);
}
if($express_type=="*"){
return express_multiple($first, $second);
}
if($express_type=="/"){
return express_divide($first, $second);
}
//end function get_expression
}
function express_add($first, $second){
return $first + $second;
}
function express_subtract($first, $second){
return $first - $second;
}
function express_mulitple($first, $second){
return $first * $second;
}
function express_divide($first, $second){
return $first / $second;
}
* $focus->$field which comes from the bean file, its current value in database and it is not return, so when the addition is made i always get 1 which is the incremented value that I specified.
I also check the custom field that I created, its type is int of length 11 (increamenting is not working). I also changed my custom field type to a drop down and i use the values 1,2,3,4,5...and in my workflow i use the following action for the specified custom field "Move dropdowns forward by" and value "1". Still is not working. What kind of professional edition is this, this is not working, that is not working... Please advice how to fix this bug!!!!!!!!
Bookmarks