Closed (fixed)
Project:
Edit
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2013 at 07:34 UTC
Updated:
25 Apr 2013 at 16:20 UTC
If a field is not editable or no editor is available edit_metadata_generator() returns array('access' => FALSE) . Currently edit_metadata() doesn't check the property but simply tries to attach the editor. This will trow an error as the property doesn't exist.
This patch addresses this in D7.
| Comment | File | Size | Author |
|---|---|---|---|
| edit-access-check.patch | 544 bytes | oxyc |
Comments
Comment #1
wim leersThanks so much for the patch!
I turned it into a strict comparison, but other than that, this was good to go — thanks! http://drupalcode.org/project/edit.git/commit/0b187be
(Note to self: this triggered a notice.)
EDIT: FRAK! I forgot to use git attribution for this commit :( And I was planning on doing so! I got distracted, and then… Meh, sorry!