When LP were created before -refs BT#7219
Merge remote-tracking branch 'upstream/1.9.x' into 7219
When LP were created before -refs BT#7219
turn off temp hack insert
Add queries to recover name and prerequisite,
Test and works whit resources already created
(Also tested dropping all sequence tables and refreshing course home page)
-refs BT#7220 -refs BT#7219
merge