bug #6244
closed
Sortindex problems in complex operations like swap synonym and accepted and others
Added by Katja Luther over 7 years ago.
Updated about 7 years ago.
Description
Norbert hatte gerade ein Problem. Er hat bei einer Subspezies diese zuerste mit einem Synonym (einer Spezies) getauscht mit der Swap Funktion.
Danach hat er versucht die (neue) akzeptierte Art an die Gattung zu hängen (da es ja vorher eine Unterart war, hing die neue Art jetzt an einer anderen Art als Kind, was natürlich falsch war).
Bei einer dieser beiden Prozeduren scheint der sortindex kaputt gegangen zu sein und zwar so, dass bei den Unterarten der alten Art ein Sortindex 2 mal vorkam (also 0,1,2,2,3). Auf Artebene fehlte ein sortindex ganz und einer anderer kam doppelt vor.
Das führte zwar nicht zu Exceptions aber zu undefiniertem Verhalten. Irgendetwas fehlte immer, jedoch bei Norbert anders als bei mir und auch im Portal wieder anders.
The problems seem to be caused by the call of updateSortindex when the collection contains null values. Then the method breaks and the remaining elements of the collections are not handled anymore.
I added the call of HHH_9751_Util.removeAllNull() in the updateSortindex() method to avoid this.
- Status changed from New to Resolved
- % Done changed from 0 to 50
- Assignee changed from Katja Luther to Andreas Müller
- Target version changed from Release 4.5 to Release 4.4
This was part of the bugfix release as far as I remember
- Status changed from Resolved to Closed
- Assignee changed from Andreas Müller to Katja Luther
- Found in Version set to Release 4.4
As this is lot of work to test but we did not get any complaints anymore I close without final testing. Also we do have the sortIndex updater in Admin menu now which helps solving issues in case they appear again.
- % Done changed from 50 to 100
Also available in: Atom
PDF