mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fixed bug in /mod/data/filter.php - content list for autolinking was not being
generated properly. Updated /mod/data/fields.php - deletion of a field now also deletes data_contents and any files associated as well. Add/update/delete fields - template now gets updates in the following cases: 1) Deletion: remove template tags for the field from all templates 2) Edit: search and replace template tags for the field in all templates 3) Add: append template tag for field into the signe and rss templates, but only if these templates are not empty. Otherwise we'd rather the user uses the automatic template generation facility, which produces better display.
This commit is contained in:
parent
20f601d324
commit
f9eab7b0c9
4 changed files with 114 additions and 9 deletions
|
@ -35,6 +35,7 @@
|
|||
'data_content AS dc ' .
|
||||
"WHERE d.course = '$courseid' " .
|
||||
'AND d.id = df.dataid ' .
|
||||
'AND df.id = dc.fieldid ' .
|
||||
'AND d.id = dr.dataid ' .
|
||||
'AND dr.id = dc.recordid ' .
|
||||
"AND df.type = 'text' " .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue