Issue Details (XML | Word | Printable)

Key: MDL-14323
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Eloy Lafuente (stronk7)
Reporter: Stephen Bourget
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Database Presets do not import templates

Created: 11/Apr/08 08:00 PM   Updated: 14/May/08 02:40 PM
Return to search
Component/s: Database activity module
Affects Version/s: 1.9
Fix Version/s: 1.9.1

File Attachments: None
Image Attachments:

1. import_error1.png
(244 kB)
Environment:
Windows Server 2003
Apache 2.0.59
PHP 5.2.5
MySQL 5.0.51a
Issue Links:
Dependency
 
Relates

Database: MySQL
Participants: Dongsheng Cai, Eloy Lafuente (stronk7) and Stephen Bourget
Security Level: None
QA Assignee: Dongsheng Cai
Resolved date: 25/Apr/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
I'm running into an error where the database preset is not importing templates, but it is importing the fields. if I try to import the buzz preset (http://moodle.org/mod/forum/discuss.php?d=84050#p371801 ) with debugging set to all I get the following error:

Notice: Array to string conversion in C:\Program Files\Apache Group\Apache2\htdocs\Moodle\moodle19\lib\datalib.php on line 28
Incorrect integer value: '' for column 'notification' at row 1

It seems that the notification field requires an integer value and will not accept a Null value (like the one being passed). This causes the import to fail (but it actually displays a message saying that the preset was applied successfully)

I've attached a screenshot of the error.
I'm seeing this on Moodle 1.9+ (Build 20080410)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
No commits have yet been performed on this issue.