Hi Onno,
Thanks for your reply.I will explain you my problem.Now i have changed the folder module. What i have done is
Add some fields under xmldbeditor. But does not change the default fields.
Reinstall the folder module which itself change database.
Then I add some mform->addelement('text','sample',get_string('demo') )
And when i save the form it works fine. But when i add element htmleditor and try to save the form
Debug info: You have an error in your SQL syntax; check the manual that corresponds to your MySQLserver version for the right syntax to use near 'lines = '<p>hgjghjdgh</p>',course = '2',revision = '3',intro = '<p>fdsaf</p>',in' at line 1
array (
0 => 'dsaf',
1 => 1360391700,
2 => 'Video',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
9 => '<p>hgjghjdgh</p>',
10 => '2',
11 => 3,
12 => '<p>fdsaf</p>',
13 => '1',
14 => 1360644810,
15 => '1',
)]
Error code: dmlwriteexception
- line 410 of \lib\dml\moodle_database.php: dml_write_exception thrown
- line 1135 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1167 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
- line 126 of \mod\folder\lib.php: call to mysqli_native_moodle_database->update_record()
- line 370 of \course\modedit.php: call to folder_update_instance()
When htmleditor leave empty it works fine. But when i give the value to it and try to save it gives error. Do i need to make any changes anywhere else so that the htmleditor also works