MDL-36738 calendar: Display events imported details

We should display a the status of events when a new subscription is added. Although this means we need to redirect through an itermediate page.
This commit is contained in:
Ankit Agarwal
2013-01-08 13:58:21 +08:00
committed by Dan Poltawski
parent 5b6e74c85f
commit 6c806e8384
+1 -1
View File
@@ -78,7 +78,7 @@ if (!empty($formdata)) {
$importresults = calendar_update_subscription_events($subscriptionid);
}
// Redirect to prevent refresh issues.
redirect($PAGE->url);
redirect($PAGE->url, $importresults);
} else if (!empty($subscriptionid)) {
// The user is wanting to perform an action upon an existing subscription.
require_sesskey(); // Must have sesskey for all actions.