CC-2450:Phone home metric
- email is not required anymore. - Send info box suppose to dispalys filelds only when thev value is non-empty string. It wasn't diaplyng where the value was 0(fixed).
This commit is contained in:
parent
a936212355
commit
59e19fe9d1
2 changed files with 1 additions and 3 deletions
|
@ -332,7 +332,7 @@ class Application_Model_Preference
|
||||||
|
|
||||||
$outputString = "\n";
|
$outputString = "\n";
|
||||||
foreach($outputArray as $key => $out){
|
foreach($outputArray as $key => $out){
|
||||||
if(!empty($out)){
|
if($out != ''){
|
||||||
$outputString .= $key.' : '.$out."\n";
|
$outputString .= $key.' : '.$out."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,12 +86,10 @@ $(document).ready(function(){
|
||||||
|
|
||||||
function validateFields(){
|
function validateFields(){
|
||||||
var stnName = $("#stnName");
|
var stnName = $("#stnName");
|
||||||
var email = $("#Email");
|
|
||||||
|
|
||||||
var errors = new Array();
|
var errors = new Array();
|
||||||
|
|
||||||
errors[0] = displayError(stnName);
|
errors[0] = displayError(stnName);
|
||||||
errors[1] = displayError(email);
|
|
||||||
|
|
||||||
for( e in errors ){
|
for( e in errors ){
|
||||||
if(errors[e]){
|
if(errors[e]){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue