Problem/Motivation
The RendererFactory class has a comment documenting how multiple items (in an array) should be handled:
// If we get an array or something, just look at the first one.
However, the code is looking at the last item instead of the first:
if (is_array($item)) {
$item = array_pop($item);
}Proposed resolution
Use the php reset array function instead of array_pop.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3361528-2.patch | 560 bytes | lisastreeter |
Issue fork entity_print-3361528
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
lisastreeter commentedPatch for fix.
Comment #3
lisastreeter commentedComment #4
grota commentedwe are using the patch and it makes sense and is simple, incidentally this is also required for http://drupal.org/project/commerce_order_document moving to RTBC
Comment #9
vladimirausFixed and merged. Thank you.