Commit a9270ddc authored by generalredneck's avatar generalredneck

Issue #2668552 by niallmurphy-ie, generalredneck: Enabling module breaks unflag in Flag module

parent 0071aeb1
......@@ -123,8 +123,8 @@ function views_natural_sort_entity_update($entity, $type) {
* This keep sour natural sort index clean.
*/
function views_natural_sort_entity_delete($entity, $type) {
$entity_info = entity_get_info($entity_type);
$id_field = $entity_info['entity_keys']['id'];
$entity_info = entity_get_info($type);
$id_field = $entity_info['entity keys']['id'];
views_natural_sort_remove($entry = array(
'eid' => $entity->$id_field,
'entity_type' => $type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment