ci-bonfire/Bonfire — Issue #276: Module creation with field with uppercase name
Author: dietbald
Created: 2011-12-31 16:22:31+00:00
State: open

If you create a new module and use an uppercase name for the field there is a problem
Then the view is generated with an uppercase but not the labels in the database

For example, create a module Todo with one field named Description
This will give an error trying to get todo_Description while it wants todo_description

Solution :

Add strtolower() to view_index.php in bonfire/application/core_modules/modulebuilder/views/files on line 98

$view .= '	'.$module_name_lower.'_'.strtolower(set_value("view_field_name$counter")).'?>';

I would add it myself but I have no idea how to do that.
Anyone want to give me a crash course ?