Commit 8f183bac authored by APolitsin's avatar APolitsin
Browse files

entity presave fix

parent 262c3d04
......@@ -51,7 +51,9 @@ class EntityPresave extends ControllerBase {
public static function checkNode($entity) {
$result = FALSE;
if (method_exists($entity, 'getType')) {
$result = $entity->getType();
if (property_exists($entity, 'title')) {
$result = $entity->getType();
}
}
return $result;
}
......
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