Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

bugfix: fix edit page form and edit post form #185

Merged
merged 1 commit into from
Sep 5, 2015
Merged

bugfix: fix edit page form and edit post form #185

merged 1 commit into from
Sep 5, 2015

Conversation

xcaptain
Copy link
Contributor

@xcaptain xcaptain commented Sep 5, 2015

On my site, update a page nothing happens and
update a post will cause an error.
use method="POST" and method="PATCH" to perform a patch operation
fixed that problem

On my site, update a page nothing happens and
update a post will cause an error.
use method="POST" and method="PATCH" to perform a patch operation
fixed that problem
@GrahamCampbell
Copy link
Member

Why have method and _method?

@xcaptain
Copy link
Contributor Author

xcaptain commented Sep 5, 2015

@GrahamCampbell According to http://laravel.com/docs/5.1/routing#form-method-spoofing , to perform a patch request, must use _method="PATCH"

@GrahamCampbell
Copy link
Member

You don;t have to. Just send an ACTUAL patch request instead of a post request with the _method set surely?

@GrahamCampbell
Copy link
Member

Instead of spoofing it as the link shows.

@xcaptain
Copy link
Contributor Author

xcaptain commented Sep 5, 2015

I tested this with Chromium 45, when I update a post or a page, I can't see a post request with the inspector and nothing changed. So I think this is a bug.

@GrahamCampbell
Copy link
Member

Meh, well if this works, I might as well merge it. Thanks. :)

GrahamCampbell added a commit that referenced this pull request Sep 5, 2015
bugfix: fix edit page form and edit post form
@GrahamCampbell GrahamCampbell merged commit 801ee80 into BootstrapCMS:master Sep 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants