gardenshade / mam-plus

Tweaks & functionality for MAM
83 stars 6 forks source link

[Bug] Donation list only showing most recent donation #238

Open gardenshade opened 2 months ago

gardenshade commented 2 months ago

Description:

Reported by lymz:

Question regarding this option in the Vault section "Add the list of recent donations to the donation page." It doesn't seem to have the desired effect. It only shows the most recent donation, not the full list of all donations this round. NOTE: You may have to disable the Global setting "Make the Vault link bypass the Vault Info page" to manually see and compare.

It only shows today's donation. It does not show the additional 3 donations I've done for this round. Vault page (pot.php) shows 4 donations (option to bypass) Donation page (donate.php) shows 1 donation

Ok, so the Donation page (donate.php) shows up in 1 of 2 ways. Before I have donated: it has the pull down, the "Donate Points" button, and lists out all 4 donations. After I donated, it says "Come back tomorrow!" and only shows 1 donation, the last one. Now when I got to the vault page (pot.php), it shows all 5 of my donations. Edit: This console log isn't getting hit; "[M+] Added the donation history to the donation page!"

It looks like it's hitting line 86 in PotHistory, and just returning. It doesn't built the table history.

Expected Behavior:

This is the intended behavior, but it should be expected that the Donate Page and Vault Page show the same list of donations.

Other:

/f/t/41863/p/p924597#924597