hi @robertl,
I've dug around a bit more. The bug appears (i.e. icon not set) when the user logged in does not match the record owner.
That is, in
search/elasticsearch/type/ElasticsearthType_artefact.php::getRecordDataById()
It checks:
if ($USER->get ( 'id' ) == $record->owner) {
If this does not match, the icon and link are not set.
And, the error is generated.
So, I think the check needs to happen in the template if those values are missing.
What do you think ?
And, this is how we can test for it.
Thanks, Ghada
hi @robertl,
I've dug around a bit more. The bug appears (i.e. icon not set) when the user logged in does not match the record owner.
That is, in
search/ elasticsearch/ type/Elasticsea rthType_ artefact. php::getRecordD ataById( )
It checks:
if ($USER->get ( 'id' ) == $record->owner) {
If this does not match, the icon and link are not set.
And, the error is generated.
So, I think the check needs to happen in the template if those values are missing.
What do you think ?
And, this is how we can test for it.
Thanks,
Ghada