Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
rdf.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Oct 2010 at 16:53 UTC
Updated:
25 Dec 2010 at 02:40 UTC
Jump to comment: Most recent file
Just noticed this last week. There is no need for $mapping to be passed by reference in rdf_mapping_save.
It has the negative effect of giving an error if someone calls the function like this
rdf_mapping_save(array('mapping' => $mapping, ....));
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | rdf-reference-953494-4.patch | 2.38 KB | ngmaloney |
| #1 | rdf_fix.patch | 2.59 KB | ngmaloney |
Comments
Comment #1
ngmaloney commentedAttached is a patch. New test was included that asserts hook can be executed with both a variable argument and an array declaration argument.
Comment #2
scor commentedNice, and it comes with a test :)
Comment #3
scor commentedI don't think we should include bug report # here.
Powered by Dreditor.
Comment #4
ngmaloney commentedAttached is patched revision, removing bug reference comment.
Comment #5
ngmaloney commentedComment #6
scor commentedlooks good now, thanks ngmaloney!
Comment #7
dries commentedCommitted to CVS HEAD. Thanks.