Correct the selector of rows of a page when editing (Bug 1327920)

Change-Id: I8ed56c07ed516555da22547484ae0a7e3ff274da
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Fix the handler functions for mouse click. (Bug 1336529)

also
 + add the function isHit() to check if the mouse button down is <LEFT>
or the key down is <Enter> or <Space>
This should work for Mac mouse as well

Change-Id: I0139f9d8d01ca005789290cf99d7ac3c37b14a28
Generate page content before initialising smarty (Bug #1337626)

Change-Id: I4b5fb0da8567e95fd9c0e57806baca835b50764e
Signed-off-by: Nathan Lewis <nathan.lewis@totaralms.com>
Catch the exception in LDAP auth (Bug #1009262)

Scrub the password from the error output and turn it into stars

Change-Id: Ie3cbf485ea2173e74364ae8505615a74b8f1c248
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Checking and removing of expired password requests (Bug #1296472)

Seen as we already have an expiry column in the db we might as well
use it.

Change-Id: I4de92289edff40e26c74ff8b9e4a77cf9bd8ccf2
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Destroy user's sessions when (Bug 1328705)

- users change his/her password
- admins delete the user's account

Change-Id: Id88207309770dae3eb803abe1f23f97a6b8eb3c8
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Fixing upgrade script (Bug #1350254)

Problem with ensure_record_exists checking nextrun column will break
things when adding new cron line to cron table.

This is due the the nextrun not being null after it has run.

Change-Id: I1f674cbc842a3e061224bf996cc0267b09018f55
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Bug1323495: Make new/modified Google Maps work

This patch modifies one regex and adds more, to handle the various
new possibilities for source URLs from Google Maps.

Tested using blocks with the following URLs:

https://mapsengine.google.com/map/edit?mid=zfwEiFwRAMSY.kHxFNhFy8iAs

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=patagonia,+argentina&aq=&sll=33.935442,-118.080497&sspn=1.663434,2.17804&ie=UTF8&hq=&hnear=Patagonia&t=m&z=5&ll=-41.810147,-68.906269&output=embed

https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=115.5683895w+51.176933999999996n&aq=&sll=37.0625,-95.677068&sspn=40.953203,79.013672&ie=UTF8&t=m&z=14&ll=51.176934,-115.56839&output=embed

https://maps.google.com/maps?ll=-41.24437,174.761855&spn=0.371216,0.475845&t=h&z=11

https://maps.google.com/maps?ie=UTF8&ll=-41.24437,174.761855&spn=0.371216,0.475845&t=h&z=11&output=embed

https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d20010.295562287632!2d-115.5683895!3d51.176933999999996!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sca!4v1400737313821

https://www.google.com/maps?q=dee+why&hl=en&ll=-33.797088,151.277661&spn=0.026426,0.055704&sll=37.0625,-95.677068&sspn=51.089971,114.082031&hnear=Dee+Why+New+South+Wales,+Australia&t=m&z=15

https://www.google.com/maps?q=dee+why&amp;hl=en&amp;sll=37.0625,-95.677068&amp;sspn=51.089971,114.082031&amp;hnear=Dee+Why+New+South+Wales,+Australia&amp;t=m&amp;ie=UTF8&amp;hq=&amp;ll=-33.797088,151.277661&amp;spn=0.026427,0.055704&amp;z=14&amp;output=embed

Change-Id: Ib5d6d9b14147ec875aa944f60feb9b69c02be85f
Signed-off-by: Nigel Cunningham <nigelc@catalyst-au.net>
Add dbprefix to the table name in SQL statement (Bug #1326174)

Change-Id: Ic13cb97266433cc9cb0a5f95761f58a1a8a7b8c5
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Fix the bug when the Mysql database collation is not set to ci

Bug #1326174

Change-Id: I2ff391b74533092b9c2e0aeaa8a34ed5059d1119
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Fix issues when deleting an institution. Bug 1314440

1. Remove all institution collections
2. Remove all institution custom layouts
3. Remove all institution registrations

Change-Id: I87a36e601571054305e2948d460c2bb670825ee6
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Delete leftover data not associated to any institution (Bug 1314440)

Another patch for bug 1314440 makes it so that when you delete an
institution, this data gets deleted. This patch cleans up the data
for institutions that were deleted before that patch was merged.

Change-Id: I167001f444a3fd204b12610ca10274d6218d9f96
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Checking for $bt['class'] before trying to access it (Bug #1350595)

Change-Id: I13de527f16370f4c37e95421750d625fab636fe4
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Version bump for 1.9.2

Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Version bump for 1.9.3testing

Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Merge "Correct the selector of rows of a page when editing (Bug 1327920)" into 1.9_STABLE
More Google maps urls not working in Google Apps block (Bug #1353759)

Was not working for urls with @ latitutude,longitude, zoom eg:
https://www.google.com/maps/@37.509345,-121.9596665,12z

And not working for shorthand ulrs like https://goo.gl/maps/pZTiA

So I've added a check for the urls with @ latitutude,longitude, zoom
and turned them into an acceptible embed url. And for shorthand urls
I've added a generic function to fetch the url the short one resolves
to and so it can parse that one instead of the short url.

Change-Id: I3c76d2608e9708f1722e243cdc02a43f1885b815
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Fix z-index value to show the navigation menu (Bug 1356672)

Change-Id: I9740c447e2ac7284d43571e0d6546dbb7bc378f3
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
User in multi institutions can lose progress bar (Bug #1347362)

If a user is in two (or more) institutions and the first institution has
profile progess set up for it and the other doesn't, the switching of
the select box makes the progress sideblock disappear.

This patch checks that if any institution the user belongs to has
profile progress then display the select box if they belong to two or
more institutions and show either the bar or a message mentioning this
intitution doesn't have progress.

To test:
- user with 1 institution that has progress
- user with 1 institution that has no progress
- user with 2 institution that both have progress
- user with 2 institution where one has progress
- user with 2 institution where none have progress

Change-Id: I4daca26b4b9cfef9faa73be34c34ad931d89465e
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Merge "User in multi institutions can lose progress bar (Bug #1347362)" into 1.9_STABLE