TT#123650 Fix 500 error in Panel UI Email Templates

* Replace wrong usage of 'reseller_id' filter
                for missed templates resultsedl use 'id'
                instead, because the query is made directly
                on resellers table

Change-Id: I85bdcda79168979c8b1bb0503ab7bba91c5f8a78
mr9.5.1
Flaviu Mates 5 years ago
parent f4cb6933b4
commit 884229fc74

@ -77,7 +77,7 @@ sub tmpl_list :Chained('/') :PathPart('emailtemplate') :CaptureArgs(0) :Does(ACL
$tmpl_rs = $tmpl_rs->search({
reseller_id => $c->user->reseller_id,
});
$tmpl_missed_rs = $tmpl_missed_rs->search_rs({ reseller_id => $c->user->reseller_id });
$tmpl_missed_rs = $tmpl_missed_rs->search_rs({ 'me.id' => $c->user->reseller_id });
}
$c->stash->{tmpl_rs} = $tmpl_rs;

Loading…
Cancel
Save