Active
Project:
Linkit
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2017 at 19:19 UTC
Updated:
6 Feb 2017 at 19:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
junaidpvAfter debugging, I found it happen when input formats are having numbers as their machine name. Then those numeric index in array get reordered while it converted to JS setting. See attached patch fixing the issue, by converting the setting to object to ensure numeric indexes preserved as they are.
I see normally input formats will have text as their machine name. I strongly assume it occurred because the site was migrated from Drupal 6 to 7.