Commit 03dcdae1 authored by Marc Ferran's avatar Marc Ferran Committed by Nicolás Moncada
Browse files

Issue #2557609 by markus_petrux: Undefined property: Entity::$type in Entity->bundle()

parent 05b5bf1d
Loading
Loading
Loading
Loading
+1 −1
Changes for plugins/content_types/properties_form.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ function eck_pm_properties_form_content_type_content_types() {
  foreach ($entities as $entity_type => $entity_object) {
    $entity_types[$entity_type] = $entity_type;
    $property_info = entity_get_property_info($entity_type);
    $entity_create = entity_create($entity_type, array());
    $entity_create = entity_create($entity_type, array('type' => ''));
    $vars = array('entity' => $entity_create);
    $vars += $property_info;
    $widgets = eck_property_behavior_invoke_plugin($entity_object, 'default_widget', $vars);