Commit f8e7f31
committed
Retain attachment dir indexes
When running the repair_settings with attachments directories
with non continous indexes, the indexes was reset to a continous
index. If one of the reindexed directories was selected as current
attachment directory, it would point to the wrong, or non existing
attachment directory index. Fix this by passing and using the current
indexes.
Non coninous indexes can happen if an attachment directory is removed
that is not the last.
Signed-off-by: Oscar Rydhé <[email protected]>1 parent 31135de commit f8e7f31
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | | - | |
779 | | - | |
| 778 | + | |
780 | 779 | | |
781 | 780 | | |
782 | 781 | | |
| |||
1051 | 1050 | | |
1052 | 1051 | | |
1053 | 1052 | | |
1054 | | - | |
1055 | 1053 | | |
1056 | 1054 | | |
1057 | 1055 | | |
1058 | | - | |
| 1056 | + | |
| 1057 | + | |
1059 | 1058 | | |
1060 | 1059 | | |
1061 | 1060 | | |
| |||
0 commit comments