summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Haug2010-12-08 05:06:11 +0000
committerNathan Haug2010-12-08 05:06:11 +0000
commit88f7612d64c4ed8aa077bb8ba4961fa38c1376c3 (patch)
tree9d55b8f3c018631e7a278c6699bb127dee81f5c2
parent0aee4560d20e5d74cc2d534cb02a6cc727b99563 (diff)
#793042: Followup to use the correct variable when checking edit access.
-rw-r--r--filefield_widget.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/filefield_widget.inc b/filefield_widget.inc
index 57f45cc..994d2fb 100644
--- a/filefield_widget.inc
+++ b/filefield_widget.inc
@@ -550,7 +550,7 @@ function filefield_node_form_validate($form, &$form_state) {
}
}
- if (!$valid && $field['required'] && filefield_edit_access($type_name, $field_name)) {
+ if (!$valid && $field['required'] && filefield_edit_access($field['type_name'], $field_name)) {
form_set_error($field_name, t('%title field is required.', array('%title' => $field['widget']['label'])));
}
$max_filesize = parse_size($field['widget']['max_filesize_per_node']);