Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.1
-
Fix Version/s: None
-
Component/s: Block: Mrbs
-
Labels:None
-
Environment:Any
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
As reported in http://moodle.org/mod/forum/discuss.php?d=38604#p457138
When addressing a MRBS calendar page directly by the URL, and clicking on the "add bookings" sign, A login form is displayed. This login form does not allow the user to login via moodle.
This behavior can be changed by replacing the entire function printLoginForm($TargetURL) on Line 85 of session_php.php
with this code:
function printLoginForm($TargetURL)
{
global $PHP_SELF;
$SESSION->wantsurl = $TargetURL;
require_login();
}
I've attached a patch.
Thanks Steve, you make my job really easy! I applied your patch. Peace - Anthony