Page 2 of 3

Re: User unsubscription

Posted: Tue Apr 03, 2018 3:31 pm
by alfa24
You should learn mvc...
Are $permission or $base_link_subscription variables defined in show.php?

Re: User unsubscription

Posted: Tue Apr 03, 2018 6:37 pm
by tempuser
That was an attempt to interpret why the link doesn't show in the Course page.

Any other reason could it be? Is it showing at your end?

Another point, why no notification email is sent upon user subscription? Is this the intended behavior?

Re: User unsubscription

Posted: Tue Apr 03, 2018 8:08 pm
by alfa24
Yes, it is showing.
And my users receive the notification mail as well.
If you need a debugger, you should find one...

Re: User unsubscription

Posted: Wed Apr 04, 2018 9:30 am
by tempuser
This link didn't show except by eliminating the condition

Code: Select all

(int)$unsubscribe_requests > 0
, meaning that the issue is with this variable, and even when the link shows the total is always (0) requests (which is supposed to be the value of $unsubscribe_requests), although there are unsubscribe requests pending and listed in the unsubscribe requests page itself.

Also I searched the whole code for the variable $unsubscribe_requests and it's not defined anywhere.

I think this is a bug. Otherwise, where is the value of this variable set?

Re: User unsubscription

Posted: Wed Apr 04, 2018 11:06 am
by alfa24
Solved, you have a PM.

Re: User unsubscription

Posted: Wed Apr 04, 2018 2:10 pm
by tempuser
Nothing in PM.

So what is the issue?

Re: User unsubscription

Posted: Wed Apr 11, 2018 6:14 pm
by tempuser
So, where is the bug for not displaying the unsubscribe requests link? What's wrong with the variable $unsubscribe_requests?

Re: User unsubscription

Posted: Wed Apr 11, 2018 8:36 pm
by tempuser
I think the problem is in the insertion in database. When the user clicks the 'unsubscribe' link it shows as waiting in course details as if it's a new subscription request, and even when this false subscription request is approved, the message 'unsubscription request waiting approval' still shows on the user side, although the course is accessible and shows as 'you didn't start this course yet'.

The problem is in the unsubscribe process. Where is the bug here?

Re: User unsubscription

Posted: Thu Apr 12, 2018 8:40 am
by alfa24
Can't replicate.
If the unsubscribe option is set on "moderate", when the user asks for unsubscribe an admin can approve his request and then the user will be correctly unsubscribed and he will not see the course anymore.

Re: User unsubscription

Posted: Thu Apr 12, 2018 10:40 am
by tempuser
When a user unsubscribes, he is put BOTH in the unsubscribe requests list, and in the Waiting list (as if he requested subscription). Can you reproduce this?