Download & Extend

Creative Commons fails to update database when 'description' field is not available.

Project:Creative Commons
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

When attempting to apply a license to a node, drupal returns this error:
Field 'description' doesn't have a default value query

Text fields in MySQL can't have a default value. If the description field isn't enabled, it's not appearing in the metadata array, and thus, isn't being added to the INSERT query. So MySQL errors at us.

Comments

#1

patch attached

AttachmentSize
creativecommons-descriptionfield-1050180-1.patch 983 bytes

#2

cleaner patch attached

AttachmentSize
creativecommons_class-1050180.patch 1.5 KB
nobody click here