|
Lines 11061-11074
if ( CheckVersion($DBversion) ) {
Link Here
|
| 11061 |
my $count_borrower_modifications = $dbh->selectrow_arrayref(q| |
11061 |
my $count_borrower_modifications = $dbh->selectrow_arrayref(q| |
| 11062 |
SELECT COUNT(*) |
11062 |
SELECT COUNT(*) |
| 11063 |
FROM borrower_modifications |
11063 |
FROM borrower_modifications |
| 11064 |
WHERE ethnicity IS NOT NULL |
11064 |
WHERE ( ethnicity IS NOT NULL AND ethnicity == "" ) |
| 11065 |
OR ethnotes IS NOT NULL |
11065 |
OR ( ethnotes IS NOT NULL AND ethnotes == "" ) |
| 11066 |
|); |
11066 |
|); |
| 11067 |
my $count_borrowers = $dbh->selectrow_arrayref(q| |
11067 |
my $count_borrowers = $dbh->selectrow_arrayref(q| |
| 11068 |
SELECT COUNT(*) |
11068 |
SELECT COUNT(*) |
| 11069 |
FROM borrowers |
11069 |
FROM borrowers |
| 11070 |
WHERE ethnicity IS NOT NULL |
11070 |
WHERE ( ethnicity IS NOT NULL AND ethnicity == "" ) |
| 11071 |
OR ethnotes IS NOT NULL |
11071 |
OR ( ethnotes IS NOT NULL AND ethnotes == "" ) |
| 11072 |
|); |
11072 |
|); |
| 11073 |
# We don't care about the ethnicity of the deleted borrowers, right? |
11073 |
# We don't care about the ethnicity of the deleted borrowers, right? |
| 11074 |
if ( $count_ethnicity->[0] == 0 |
11074 |
if ( $count_ethnicity->[0] == 0 |
| 11075 |
- |
|
|