security updates

have to check views and entityreference for custom patches
This commit is contained in:
Bachir Soussi Chiadmi
2015-04-19 20:45:16 +02:00
parent 802ec0c6f3
commit b3221c71e2
516 changed files with 14267 additions and 7349 deletions
@@ -20,7 +20,9 @@ function _entityreference_devel_generate($object, $field, $instance, $bundle) {
$referencable_entity = entityreference_get_selection_handler($field, $instance)->getReferencableEntities();
if (is_array($referencable_entity) && !empty($referencable_entity)) {
// Get a random key.
$object_field['target_id'] = array_rand($referencable_entity);
foreach ($referencable_entity as $type => $eids) {
$object_field['target_id'] = array_rand($eids);
}
}
return $object_field;
}