We have moved to Github. Please open tickets there.

Opened 5 years ago

Closed 5 years ago

#357 closed Defect (fixed)

clear_annotations function fails

Reported by: kevinjardine Owned by:
Priority: high Milestone:
Component: Core Version: 1.0
Severity: major Keywords:
Cc: brettp Difficulty:

Description

clear_annotations is failing to actually delete all annotations when you do not specify a name.

This is because of the line:

$name = get_metastring_id($name);

which maps even empty strings to a metadata id, assuming that there is an empty string in the metastrings table, which is usually the case.

The result is that the function attempts to delete annotations which have no name, instead of deleting all annotations as intended.

Change History (1)

comment:1 Changed 5 years ago by ben

  • Resolution set to fixed
  • Status changed from new to closed

(In [svn:2134]) Clear annotations now clears annotations properly when no name is specified. Fixes #357

Note: See TracTickets for help on using tickets.