Skip to content

Deal with deleted objects in log #2

@bondjimbond

Description

@bondjimbond

If an object has had a find/replace operation performed on it and was later deleted you get errors:

Notice: Trying to get property of non-object in islandora_find_replace_operation_log() (line 40 of /var/www/drupal/sites/all/modules/islandora_find_replace/includes/log.inc).
Notice: Trying to get property of non-object in islandora_find_replace_operation_log() (line 40 of /var/www/drupal/sites/all/modules/islandora_find_replace/includes/log.inc).
Notice: Trying to get property of non-object in islandora_find_replace_operation_log() (line 42 of /var/www/drupal/sites/all/modules/islandora_find_replace/includes/log.inc).

Need to check for existence of object, determine how to refer to the object. Probable solution: print the PID with no link and (deleted) beside it.

E.g. "object:1 (deleted)"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions