Invalid parameter type for source_id ERROR
I have a problem when using together restrict_to_relationship_types and restrict_to_types and types with the ca-objects bundle:
example:
<placement code="ca_objects">
<bundle>ca_objects</bundle>
<settings>
[...]
<setting name="restrict_to_relationship_types">titolo_variante</setting>
<setting name="restrict_to_types">titolo_opera</setting>
</settings>
</placement>
[...]
When i try to create a new object from quick add the error is: Invalid parameter type for source_id
The same thing doesn't happen with entities where using both types of restrictions works fine.
Collective access version: 1.7.14
Comments
solved: I was using a wrong PHP version
What version were you running?
...working on it I discovered that the problem was not actually PHP, but the fact that the preferred label of the source object was not populated when I was trying to create a relationship to an object
Ok so the lack of preferred label was the problem? It is the software bug, or a problem with your data?
Lack of my data, no bug