Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.13
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2010 at 21:07 UTC
Updated:
12 Jul 2010 at 01:10 UTC
I've extended the biblio type with cck to add a file field so users can upload their papers to the site. After upgrading to filefiled 6.x-3.5 I get the following warning for every biblio entry with a file attachment.
warning: Missing argument 2 for filefield_view_access(), called in /var/www/sites/all/modules/biblio/biblio_theme.inc on line 830 and defined in /var/www/sites/all/modules/filefield/filefield.module on line 497.
page reference:
http://vcp.ics.uci.edu/biblio/28
Modifying line 830 in biblio_theme.inc from
if (filefield_view_access($field_name)) {
to
if (filefield_view_access($field_name, $node)) {
Seems to fix the problem.
Comments
Comment #1
rjerome commentedThanks for bringing that to my attention, it's fixed now.
http://drupal.org/cvs?commit=385082
Ron.