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

Fix editing sites #1891

Merged
merged 1 commit into from
Jul 14, 2020
Merged

Fix editing sites #1891

merged 1 commit into from
Jul 14, 2020

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jul 14, 2020

What is this pull request for?

Prior to this commit, the site's form partial would only reference the
path needed to create a new site, not the one needed to edit an
existing one. This commit changes the partial to use resource_path,
which does the right thing: /admin/sites/ for creating a new site,
/admin/sites/2/ for editing an existing one.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change (not adding any)

Prior to this commit, the site's form partial would only reference the
path needed to create a new site, not the one needed to edit an
existing one. This commit changes the partial to use `resource_path`,
which does the right thing: `/admin/sites/` for creating a new site,
`/admin/sites/2/` for editing an existing one.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@tvdeyen tvdeyen added this to the 5.0 milestone Jul 14, 2020
@tvdeyen tvdeyen changed the title Allow editing sites Fix editing sites Jul 14, 2020
@tvdeyen tvdeyen merged commit f6cdf05 into AlchemyCMS:master Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants