1.4 - Resources in same window, not frame - global revert to previous default?

1.4 - Resources in same window, not frame - global revert to previous default?

by Andy Hawkins -
Number of replies: 2

After 1.4 upgrade, all existing resources now seem to have the 'same window' box checked but not the frame option.

This leads to different behaviour from 1.3 by default, rather than as a result of our decision to change each resource.

Can lead to unexpected results, and removes breadcrumb should users want to save the resource locally. (We block drive C which is where IE seems to want to save when not in a frame)

Rather than manually change each resource (a big job) - is there a way to globally revert all resources to the previous default ie same window and in a frame?

TIA

Average of ratings: -
In reply to Andy Hawkins

Re: 1.4 - Resources in same window, not frame - global revert to previous default?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I don't understand why this happened ... did you visit the admin page directly after the upgrade to complete the upgrade? 

Anyhow, you can fix it by going into MySQL Admin and running an SQL command like this:

update mdl_resource set options = 'frame';
Average of ratings: Useful (1)
In reply to Martin Dougiamas

Re: 1.4 - Resources in same window, not frame - global revert to previous default?

by Andy Hawkins -

Thanks for another prompt answer - it seemed to do the trick.

When we upgraded we had a SQL problem (could not write to temp dir - mentioned in installation/upgrade forum) which caused all sorts of oddities - possibly this as well.