Download & Extend

No default values for node reference fields

Project:Resource Conflict
Version:5.x-1.0
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

For me resource conflict don't fetch default values for node references in content type settings form properly.

Changed

<?php
'#default_value' => variable_get('resource_conflict_fields_equipment_booking', FALSE)
?>

to
<?php
'#default_value' => variable_get('resource_conflict_fields_' . $type, FALSE)
?>

Don't have time to submit a patch, but its a very simple fix.

/Regards

Comments

#1

Status:active» fixed

Thanks for catching that - 'equipment_booking' was the name of the content type on the site I developed this for. It's been committed to the -dev version. In the future, please at least mention the line number and version of the code you found the line on.

Thanks!
--Andrew

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here