Commit ab7076e4 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

is_typed_reference should be false if created entity is not a reference

(i.e. if data_object_reference can't be found).

This avoid clash with `simplified_profile` predicate breaking the data object
creation form because `is_typed_reference` had unexpectidly the highest score.
parent 82e92c392bb5
......@@ -50,6 +50,8 @@ def is_typed_reference(cls, req, entity=None, **kwargs):
if rtype == 'seda_data_object_reference':
entity = req.entity_from_eid(eid)
return 0
entity = entity.seda_data_object_reference[0]
if entity is not None and entity.cw_etype == 'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement':
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