I discovered this bug while writing behat tests.

You can't create a Drupal 6 site without Javascript right now, because you have to select "Drupal" profile before your drupal6 platforms even appear in the form. They won't appear at all if javascript is disabled.

We need to patch this so that the default value of the install profile is available in the selected platform.

CommentFileSizeAuthor
#3 2779193-platform-query.patch1.8 KBjon pugh

Comments

Jon Pugh created an issue. See original summary.

  • Jon Pugh committed 1071f3c on 2779193-platform-query
    Issue #2779193: node/add/site?platform=123 doesn't default to platform...
jon pugh’s picture

StatusFileSize
new1.8 KB

The attached patch reloads the list of profiles and platforms if the query parameter ?platform=123 is set.

Because the platform should be fixed to 123 if a user follows this list, I also limited the list of install profiles to only those available on that platform.

I also added a drupal_set_title() so it's more clear to the user where they are installing the site:

'Create site on platform NAME'

  • helmo committed 66824eb on 7.x-3.x authored by Jon Pugh
    Issue #2779193 by Jon Pugh: node/add/site?platform=123 doesn't default...
helmo’s picture

Status: Active » Fixed

Thanks, committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jon pugh’s picture

Status: Closed (fixed) » Needs review
helmo’s picture

Hmm ... When I look in the 7.x-3.x branch I do see that code: https://git.drupalcode.org/project/hosting/blob/7.x-3.x/site/hosting_sit...

helmo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.