[#446] getClientMembershipList returns empty, tho I can see Memberships in the admin interface

Migrated from Redmine #446 | Author: Guillaume Cambon
Status: New | Priority: High, I’m very impatient | Created: 2019-11-15


Hello,
this might be rather specific, so I’ll allow myself to post some personal data:

platform: wiplaymusic
client_id: 84

  • when I check this user in the admin interface (personal data report), I see he has a Membership (without status, which is weird)
  • when I’m logged in as this user, I can see I already purchased the membership
  • however, calling getClientMembershipList(84) returns an empty array. I tried for another user (e.g. 81) and there I actually get the memberships

This is confusing, do you have an explanation?

Note: I did erase the payment in regard to that membership, this might have an impact.

Regards,
Guillaume

Guillaume Cambon wrote:

Another information, when I’m logged in, I actually can’t retrieve the purchase, but only see the “Purchased” ribbon on the Membership choosing screen.

Redmine Admin wrote:

Invoice for this membership payment was deleted manually by admin. Of course membership got cancelled in such case. Cancelled memberships are not returned by this API method.

Guillaume Cambon wrote:

Yes this was my suspicion, but there are two confusing things:

  • why is the “purchased” ribbon still shown to the user? (screen 1)
  • why isn’t the status “cancelled” written in the membership section, in the report area? (screen 2)

Guillaume Cambon wrote:

Ah, can’t seem to upload screenshots… hope this is clear enough

Redmine Admin wrote:

Status problem will be fixed