Subversion Repositories PEEPS

Rev

Rev 17 | Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17 Rev 19
Line 167... Line 167...
167
          logit ($F->{person_id}, "DB ERROR ($dberr): Requesting league affiliation to ".getLeagueName ($F->{newaffiliation})." [$F->{newaffiliation}]");
167
          logit ($F->{person_id}, "DB ERROR ($dberr): Requesting league affiliation to ".getLeagueName ($F->{newaffiliation})." [$F->{newaffiliation}]");
168
          push @ERRORS, $dberr;
168
          push @ERRORS, $dberr;
169
        } else {
169
        } else {
170
          logit ($F->{person_id}, "Request to be added to ".getLeagueName ($F->{newaffiliation})." [$F->{newaffiliation}]");
170
          logit ($F->{person_id}, "Request to be added to ".getLeagueName ($F->{newaffiliation})." [$F->{newaffiliation}]");
171
          orglogit ($F->{person_id}, $F->{newaffiliation}, "Requested affiliation.");
171
          orglogit ($F->{person_id}, $F->{newaffiliation}, "Requested affiliation.");
-
 
172
          PEEPSMailer::emailAffiliationRequest ($F->{person_id}, $F->{newaffiliation});
172
        }
173
        }
Line 173... Line 174...
173
        
174
        
Line 174... Line 175...
174
        $dbh->do ("replace into full_person select * from v_person where id = ? and league_id = ?", undef, $F->{person_id}, $F->{newaffiliation});
175
        $dbh->do ("replace into full_person select * from v_person where id = ? and league_id = ?", undef, $F->{person_id}, $F->{newaffiliation});
Line 182... Line 183...
182
          logit ($F->{person_id}, "DB ERROR ($dberr): Deleting league affiliation from ".getLeagueName ($F->{deleteaffiliation})." [$F->{deleteaffiliation}]");
183
          logit ($F->{person_id}, "DB ERROR ($dberr): Deleting league affiliation from ".getLeagueName ($F->{deleteaffiliation})." [$F->{deleteaffiliation}]");
183
          push @ERRORS, $dberr;
184
          push @ERRORS, $dberr;
184
        } else {
185
        } else {
185
          logit ($F->{person_id}, "Deleted Affiliation with ".getLeagueName ($F->{deleteaffiliation})." [$F->{deleteaffiliation}]");
186
          logit ($F->{person_id}, "Deleted Affiliation with ".getLeagueName ($F->{deleteaffiliation})." [$F->{deleteaffiliation}]");
186
          orglogit ($F->{person_id}, $F->{deleteaffiliation}, "Removed affiliation.");
187
          orglogit ($F->{person_id}, $F->{deleteaffiliation}, "Removed affiliation.");
-
 
188
          PEEPSMailer::emailAffiliationRemoved ($F->{person_id}, $F->{deleteaffiliation});
187
        }
189
        }
Line 188... Line 190...
188
        
190
        
Line 497... Line 499...
497
    logit ($uid, "$ORCUSER->{derby_name} updated your profile: $field -> $newvalue");
499
    logit ($uid, "$ORCUSER->{derby_name} updated your profile: $field -> $newvalue");
498
  }
500
  }
Line 499... Line 501...
499
  
501
  
500
  return;
502
  return;
-
 
503
}