In the sync dialog, I get all the platforms and all the sites, but I came to click on the "Sync data", no matter what I have selected It always tell's me
"Are you sure you want to sync"
I have looked in the $form_state used in hosting_task_sync_form_validate, there always an empty ['values']['parameters']['source']
I could not figure why, even after messing a little with the code.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | hosting_tasks_extra-sync_data_source-2674264-8.patch | 919 bytes | grimreaper |
| #3 | hosting_sync-2674264-1.patch | 1.09 KB | ybabel |
Comments
Comment #2
ybabel commentedOk now I have a clue : it's the "A custom Drush alias" code that interferes with those of the other sources.
wether its drush alias that works, wether it's platforms sites, but not both of them
Comment #3
ybabel commentedProposed patch, changing the order make it works ...
Comment #4
ybabel commentedComment #5
helmo commentedI don't like having the custom source as the first option.
We'll have to find a way to get the value of $form['source']['custom_alias']['text'] into another place.
Comment #6
helmo commentedComment #7
szeidler commentedI also ran into that issue.
For future reference: You can workaround the issue, using the drush alias you initially wanted to select in the custom alias field, till there will be any progress here.
Comment #8
grimreaperHello,
Here is a patch that fix the issue.
The problem is that the value of the hidden textfield is always send in the POST request when submitting the form. So it is an empty value.
A disabled textfield is not sent in the POST values, so disabling the textfield with the states API solved the problem.
Thanks for the review.
Comment #10
helmo commentedThanks, that solved it. Committed.
Comment #11
grimreaperThanks for the commit.