summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinstromaniac2015-11-02 15:47:46 (GMT)
committerAaron Bauman2015-11-02 15:47:46 (GMT)
commitae96410418dc433ac0d1fd796f015f713e33cb51 (patch)
treefa808c9ef9429b40a71088491d8e34c056f79e5b
parent5a658bb2881b8af4b10a86a4d3ee6bf46d46daea (diff)
Issue #2072475 by klaasvw: Fatal error when creating a new node when using entityreference
-rw-r--r--plugins/entityreference/selection/EntityReferenceHandler_field.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/entityreference/selection/EntityReferenceHandler_field.class.php b/plugins/entityreference/selection/EntityReferenceHandler_field.class.php
index b3dd95f..4ffe5b7 100644
--- a/plugins/entityreference/selection/EntityReferenceHandler_field.class.php
+++ b/plugins/entityreference/selection/EntityReferenceHandler_field.class.php
@@ -54,7 +54,7 @@ class EntityReferenceHandler_field extends EntityReference_SelectionHandler_Gene
/**
* Implements EntityReferenceHandler::getInstance().
*/
- public static function getInstance($field, $instance) {
+ public static function getInstance($field, $instance = NULL, $entity_type = NULL, $entity = NULL) {
$entity_type = isset($field['settings']['target_type']) ? $field['settings']['target_type'] : 'none';
$title_field = isset($field['settings']['handler_settings']['title_field']) ? $field['settings']['handler_settings']['title_field'] : 'none';