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

Add Menu & Add Category fails in laravel version #4

Closed
nebojsatomic opened this issue May 1, 2021 · 1 comment
Closed

Add Menu & Add Category fails in laravel version #4

nebojsatomic opened this issue May 1, 2021 · 1 comment
Assignees

Comments

@nebojsatomic
Copy link
Owner

add-menu-fails

Add menu and Add category fails bcs the response is giving html, and it is giving html probably bcs form validation fails in between zf and laravel, that is
if ($this->_request->isPost() && $formAddMenu->isValid($_POST)) {

is never true and the response is always giving else {

add-menu-item, add-category-item and delete actions are working

@nebojsatomic
Copy link
Owner Author

The problem actually was a trailing slash in the ajax call which made it repeat itself, sending post values in the first request, and making an error in the second bcs there was no post vars present in the second

POST(absoluteUrl + "category/add-category/"
GET(absoluteUrl + "category/add-category"

POST(absoluteUrl + "menu/add-menu/"
GET(absoluteUrl + "menu/add-menu

Solved in vuejs branch here b422d50 and will be in main once merged

@nebojsatomic nebojsatomic self-assigned this May 8, 2021
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

No branches or pull requests

1 participant