Issues fix

Yeah, I wondered about that, but we don't do that anywhere, and this is
better than pulling the entire object. It's a lot faster
On 11 Oct 2014 16:29, "Lloyd Wallis" <notifications@github.com> wrote:

> In src/Classes/ServiceAPI/MyRadio_UserTrainingStatus.php:
>
> > @@ -155,7 +155,11 @@ public function toDataSource($full = true)
> >              'url' => $this->getAwardedTo()->getURL(),
> >              'value' => $this->getAwardedTo()->getName()
> >          ];
> > -        $data['awarded_by'] = $this->getAwardedBy()->toDataSource($full);
> > +        $data['awarded_by'] = [
> > +            'display' => 'text',
> > +            'url' => $this->getAwardedBy()->getURL(),
>
> Imo, it may have been slightly nicer from an API point of view to return
> the awarded by memberid so you could do subsequent requests for more info,
> but there isn't really a use case for that
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/UniversityRadioYork/MyRadio/pull/127/files#r18742159>.
>