MT#5879: Failed with condition unification for reseller_id of contracts. Return to double search using to construct query.

ipeshinskaya/InvoiceTemplate5
Irka 11 years ago committed by Victor Seva
parent 75f16d14b5
commit b79bdb342a

@ -222,6 +222,17 @@ sub get_contracts_rs_sippbx{
$reseller_condition = $c->user->contract->contact->reseller_id;
} elsif($c->user->roles eq "admin") {
}
$customers = $customers->search({
'contact.reseller_id' => $reseller_condition ,
});
my $reseller_condition;
if($c->user->roles eq "reseller") {
$reseller_condition = $c->user->reseller_id;
} elsif($c->user->roles eq "subscriberadmin") {
$reseller_condition = $c->user->contract->contact->reseller_id;
} elsif($c->user->roles eq "admin") {
}
if ($reseller_condition){
$customers = $customers->search({
'contact.reseller_id' => $reseller_condition ,

Loading…
Cancel
Save