rental moon testing

This commit is contained in:
2020-06-06 04:16:49 -05:00
parent 9fb94f1fd4
commit 57ee594dd0

View File

@@ -253,17 +253,17 @@ class MoonsAdminController extends Controller
//Set the contact name based on the contact type //Set the contact name based on the contact type
if($moon->rental_contact_type == 'Alliance') { if($moon->rental_contact_type == 'Alliance') {
$allianceInfo = $lookupHelper->GetAllianceInfo($moon->contact); $allianceInfo = $lookupHelper->GetAllianceInfo($moon->rental_contact_id);
//Set the contact name and ticker //Set the contact name and ticker
$contact = $allianceInfo->name; $contact = $allianceInfo->name;
$ticker = $allianceInfo->ticker; $ticker = $allianceInfo->ticker;
} else if($moon->rental_contact_type == 'Corporation') { } else if($moon->rental_contact_type == 'Corporation') {
$corporationInfo = $lookupHelper->GetCorporationInfo($moon->contact); $corporationInfo = $lookupHelper->GetCorporationInfo($moon->rental_contact_id);
//Set the contact name and ticker //Set the contact name and ticker
$contact = $corporationInfo->name; $contact = $corporationInfo->name;
$ticker = $corporationInfo->ticker; $ticker = $corporationInfo->ticker;
} else if($moon->rental_contact_type == 'Character') { } else if($moon->rental_contact_type == 'Character') {
$characterInfo = $lookupHelper->GetCharacterInfo($moon->contact); $characterInfo = $lookupHelper->GetCharacterInfo($moon->rental_contact_id);
//Set the contact name //Set the contact name
$contact = $characterInfo->name; $contact = $characterInfo->name;
//Get the ticker for the character from the corporation he belongs to //Get the ticker for the character from the corporation he belongs to