Moodle™ is a registered trademark.
Site policy | Contact
Updating a file in a database activity only works once
after spending several hours on preset files I have decided to add a new table instead - it should be far more flexible and much easier to implement :-D
Why did you make data_field_picture subclass data_field_base directly rather than data_field_file?
That causes some yuk special cases for me which is fine if there's a good reason - just wondering what it is..
I did that because it does not share any method anymore, all methods from file are overriden.
We can change it back, but what would be the benefit?
Could you please have a look at this for me?
It is a patch for handle the uploading/downloading of database presets through the new file API.
SOme more things to be done:
1) File field should just use one filepicker element
2) Picture field should just use one filepicker element
3) URL field should just use one url element
ah, sorry I overlooked this, unfortunately it is nut suitable any more due to the recent changes in file api, sorry
This has been resolved now by recent changes to the database modules file handling.