File tree 1 file changed +2
-2
lines changed
src/main/java/ubc/pavlab/rdp/services
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -436,14 +436,14 @@ public int deactivateTermSubtree( OntologyTermInfo ontologyTermInfo ) {
436
436
@ Secured ("ROLE_ADMIN" )
437
437
@ Transactional
438
438
public void move ( Ontology ontology , Direction direction ) {
439
- List <Ontology > ontologies = ontologyRepository .findAllByActiveTrue ();
439
+ List <Ontology > ontologies = ontologyRepository .findAll ();
440
440
ontologies .sort ( Ontology .getComparator () );
441
441
442
442
// compute the original position
443
443
int i = ontologies .indexOf ( ontology );
444
444
445
445
if ( i == -1 ) {
446
- throw new IllegalArgumentException ( "The provided ontology is not active." );
446
+ throw new IllegalArgumentException ( String . format ( "Unknown ontology %s." , ontology . getName () ) );
447
447
}
448
448
449
449
// compute the target position
You can’t perform that action at this time.
0 commit comments