biolab-unige / xtens-app

A digital repository for biomedical data based on a flexible JSON data model ( The project has been moved to a new address https://github.com/xtens-suite/xtens-app.git )
http://www.xtens.org
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Editing datatype not delete parent #11

Closed gicaz closed 8 years ago

gicaz commented 8 years ago

In /datatypes delete a datatype parents of a datatype, not work. No error in console. The datatype 3 had 1 and 8 as parent. I deleted 8 from edit form and then i save but datatype 8 remains. This is what returned on console: KnexStrategy.updateDataType - child-parent association found: 3-1 { parents: [ 1 ], name: 'Report RM', schema: { body: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object] ], header: { name: 'Report RM', model: 'Data', version: '0.0.1', ontology: '', fileUpload: false, description: 'Analysis RM' } }, model: 'Data', id: 3, createdAt: Tue Sep 15 2015 11:45:11 GMT+0200 (CEST), updatedAt: Thu Jan 28 2016 17:36:17 GMT+0100 (CET) } { id: 1, isWheel: true, isManager: true, canAccessPersonalData: true, canAccessSensitiveData: true }