Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Providers Datasources #2140

Open
designermonkey opened this issue Jul 24, 2014 · 0 comments
Open

Providers Datasources #2140

designermonkey opened this issue Jul 24, 2014 · 0 comments

Comments

@designermonkey
Copy link
Member

There's a problem with the Providers Datasources. I've discovered it using the Section Schema Datasource extension.

The extension is providing it's editor page correctly, in particular the fields for a chosen section, and it is building the select box with one set of these fields.

When the section is $_POSTed, there are multiple copies of the same field handle posted. This means that if a field has been de-selected in the editor, it's duplicate being sent through re-selects it after save, also the section schema datasource created after the edit has a compounded list of these fields.

Does the Javascript interfere with these POST values at all? Is it possible it is duplicating them?

By the time the data is posted through the __formAction function of content.blueprintsdatasources.php, the extra fields have been added.

Debugging this is going to be a nightmare, as the __form function is 936 lines of code. This is insane! It must be broken down, but that's another discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants