Skip to content
Snippets Groups Projects
Commit 1b8a2b07 authored by jgraham's avatar jgraham Committed by Amitai Burstein
Browse files

Issue #1871758 by jgraham: Fixed Extraneous diffs created on og features...

Issue #1871758 by jgraham: Fixed Extraneous diffs created on og features exports due to arbitrary role ordering.
parent d3ba64b1
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,9 @@ function og_features_permission_features_export_render($module, $data) {
$permission['roles'] = array();
}
// Ensure consistent ordering of roles on output to avoid extraneious diffs.
asort($permission['roles']);
$perm_identifier = features_var_export($key);
$perm_export = features_var_export($permission, ' ');
$code[] = " // Exported og permission: {$perm_identifier}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment