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

Creating Page will create it twice in the same language-tree #180

Closed
robinboening opened this issue Feb 9, 2012 · 6 comments
Closed

Creating Page will create it twice in the same language-tree #180

robinboening opened this issue Feb 9, 2012 · 6 comments

Comments

@robinboening
Copy link
Contributor

rails environment => development
with ruby 1.9.3
alchemy v2.1.3

When creating a new Page via the backend gui in alchemy, it will be created twice (in one language-tree).
Also the urlname which should be validated for uniqueness, is identical to the other.

The page_layouts.yml is clean:

  • name: intro
    unique: true
    elements: []
  • name: standard
    elements: []

This problem does not occure in production environment, when using passenger. (tested with ruby 1.8.7 and 1.9.3)

@tvdeyen
Copy link
Member

tvdeyen commented Feb 9, 2012

Have you tested this in a clean fresh alchemy install?

@masche842
Copy link
Contributor

Seems I'm not the only one to encounter this... Only have it from time to time, haven't figured out a pattern yet.
In my case it's also two POST requests (not only in pages though). Think it's js related.

@tvdeyen
Copy link
Member

tvdeyen commented Feb 9, 2012

Strange and I do not have this problems. Neither in development, nor in production.

I also think that's it JS related. Maybe there are too many observers binded.
Do you use the return key to submit the form, or do you klick with the mouse?
Maybe we have submit and click event listener?

@masche842
Copy link
Contributor

No, it doesn't depend on clicking the submit-button. It even happens when you submit the form with enter (i.e. being in the name field and hitting enter on your keyboard)

@tvdeyen
Copy link
Member

tvdeyen commented Feb 10, 2012

Ok, I pushed some changes on the button observers. Please pull current master and check if it still happens.
Thanks.

@tvdeyen
Copy link
Member

tvdeyen commented Feb 10, 2012

Ok, seems to be fixed. I close this for now.

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

3 participants