Refactor to store dependencies as individual attributes
This also drops support for the transitional `json.depends.array` configuration value, which has not been necessary since ~2016. As with tags, dependencies are stored in both a "combined", comma-separated format (for compatibility) and in an attribute-per-dependency format (for the future).
This commit is contained in:
committed by
Tomas Babej
parent
413b8d22b7
commit
20af583e21
@@ -217,8 +217,8 @@ static bool sort_compare (int left, int right)
|
||||
return !ascending;
|
||||
|
||||
// Sort on the first dependency.
|
||||
left_number = Context::getContext ().tdb2.id (left_deps[0].substr (0, 36));
|
||||
right_number = Context::getContext ().tdb2.id (right_deps[0].substr (0, 36));
|
||||
left_number = Context::getContext ().tdb2.id (left_deps[0]);
|
||||
right_number = Context::getContext ().tdb2.id (right_deps[0]);
|
||||
|
||||
if (left_number == right_number)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user