Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patron: fix patron profile for dispute event #1299

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

zannkukai
Copy link
Contributor

When a patron has some fees containing at least one 'dispute' event, the
server crash because ii tries to convert the amount of dispute (always
none) to a decimal number. This PR fix this problem checking if the
event to display has a valid 'amount' attribute. This PR also fixes some
small HTML problems on the patron profile.

Co-Authored-by: Renaud Michotte [email protected]

Why are you opening this PR?

Closes #1272

How to test?

  • Log in as admin. Go in professional view to place a dispute event on Simonetta patron account.
  • Logout
  • Log in as Simonetta. Display your patron profile to view the dispute event.

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?

@zannkukai zannkukai self-assigned this Oct 13, 2020
<div class="col-lg-2 col-sm-1 label-title">
<i class="fa fa-map-marker pr-1" title="{{ _('Library') }}"></i>
</div>
<div class="col-lg-10 col-sm-11"> {{ event.library.name }}</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make a class ml-1 and remove the space before value

@zannkukai zannkukai marked this pull request as ready for review October 14, 2020 07:08
@zannkukai zannkukai modified the milestones: v0.14.0, v0.13.0 Oct 14, 2020
@zannkukai zannkukai force-pushed the zan-fix-dispute-patron-account branch 2 times, most recently from 4c5afde to 1317f61 Compare October 14, 2020 11:44
When a patron has some fees containing at least one 'dispute' event, the
server crash because ii tries to convert the amount of dispute (always
none) to a decimal number. This PR fix this problem checking if the
event to display has a valid 'amount' attribute. This PR also fixes some
small HTML problems on the patron profile.

Closes rero#1272

Co-Authored-by: Renaud Michotte <[email protected]>
@zannkukai zannkukai force-pushed the zan-fix-dispute-patron-account branch from 1317f61 to 176c502 Compare October 14, 2020 13:38
@jma jma merged commit 86212f2 into rero:dev Oct 14, 2020
@zannkukai zannkukai deleted the zan-fix-dispute-patron-account branch October 19, 2020 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

circulation: unable to display a patron account in public view when he has a dispute.
4 participants