I guess this cropped up through an unlucky merge a few commits ago. I'll
rectify it with a commit on financialDisclosureToDatabase, ok?


2014-05-28 17:22 GMT+02:00 Mateusz <notifications@github.com>:

> In app/controllers/CopyrightTransfer.scala:
>
> > @@ -75,9 +75,9 @@ object CopyrightTransfer extends Controller {
> >        form.bindFromRequest.fold(
> >          errors => BadRequest("Unspecified error occurred, nobody knows what happened yet. Try again."),
> >          cd => {
> > -          val copyrightTransferRequest = CopyrightTransferRequest(None, cd, DateTime.now(), request.remoteAddress, CopyrightTransferStatus.UNCONFIRMED)
> > -          filledConsents += cd.ojsId -> copyrightTransferRequest
> > -          Ok(html.copyright.summary(copyrightTransferRequest))
> > +          val copyrightTransferRequest = CopyrightTransferRequest(None, cd, DateTime.now(), request.remoteAddress, CopyrightTransferStatus.UNCONFIRMED, cd.financialDisclosure)
> > +          CopyrightTransferInternalDao.saveTransfer(copyrightTransferRequest)
> > +          Ok(html.copyright.summary(copyrightTransferRequest, form.fill(cd)))
>
> Indeed, it is invoke incorretyly. I do not know with way is ok, Patrycja
> and Piotr wirten this invocation and tempalte signature, maby i figure it
> latly.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tilius/io-article-manager/pull/31/files#r13136846>
> .
>