Closed (fixed)
Project:
Extra Fields Checkout Pane
Version:
6.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
11 Jan 2012 at 10:36 UTC
Updated:
4 Jan 2014 at 01:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ivan.vujovicHere is the patch which should solve this problem.
Comment #2
megachrizYour patch is committed. Thanks for catching!
Previously (in the alpha version), the fields were reloaded for each pane, but in beta1 the API was redesigned to make sure fields are only loaded once from the database. This had indeed consequences for the Views implementation which I didn't had realized.
Comment #3
igor.ro commentedHello.
MegaChriz should not we use
$fields[$pane_type][$fieldname] = drupal_clone($field);instead of
$fields[$pane_type][$fieldname] = clone $field;?
Thanks.
Comment #4
megachriz@igor.ro
No, we don't need that. drupal_clone() is used to get code compatible with both PHP 4 and PHP 5. Extra Fields Pane only supports PHP 5. But thanks for your suggestion.