Closed (fixed)
Project:
Differ
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2011 at 12:33 UTC
Updated:
11 Apr 2012 at 15:10 UTC
Default value for comments are not set. I managed to fix something but still doesn't work.
@@ -111,10 +111,10 @@ function differ_field_delete_field($field) {
* Sets the default value of a comment field based on the parent node.
*/
function differ_default_value_function($obj_type, $object, $field, $instance, $langcode) {
- if ($obj_type == 'comment' && !isset($object->cid) && !empty($field['settings']['differ']['track'])) {
+ if ($obj_type == 'comment' && !isset($object->cid) && !empty($instance['settings']['differ']['track'])) {
Comments
Comment #1
tstoecklerSorry for letting this slide for such a long time. I have recently committed some clean-ups to to the module, and this should be fixed now.
If not, please post the exact steps to reproduce the issue.