PlayWithMagic / PlayWithMagic.org

PlayWithMagic.org is a web application that catalogs magic tricks and helps magicians build shows.
http://playwithmagic.github.io/PlayWithMagic.org/
Apache License 2.0
2 stars 1 forks source link

Sets cannot currently be saved. #192

Closed pkarjala closed 9 years ago

pkarjala commented 9 years ago

Somewhere in the Postgres migration, the ability to save Sets was lost.

Currently, whenever you generate a new Set, it returns an Error, even though no errors were triggered.

This appears to be in Application.java line 545 or thereabouts. Continuing to investigate at this time.

pkarjala commented 9 years ago

Here is the raw output of the Set form when submitted, and System.out.println(formWithSetData); is called:

Form(of=class views.formdata.SetFormData, 
data={
  name=Patrick's Expert Routine, 
  description=Start with this Amazing Routine, then close with The Great Parcheesi.  This is the perfect intro to dinner, and will leave your guests hungry (for dinner anyway)., 
  id=0, 
  magicianId=0, 
  routines[0]=1, 
  routines[1]=2}, 
value=None, 
errors={
  routines[0]=[ValidationError(routines[0],[error.invalid.target.routines[0], error.invalid.target.routines, 
error.invalid.routines[0], error.invalid.routines, error.invalid.models.Routine, error.invalid],[])], 
  routines[1]=[ValidationError(routines[1],[error.invalid.target.routines[1], error.invalid.target.routines, 
error.invalid.routines[1], error.invalid.routines, error.invalid.models.Routine, error.invalid],[])]
}
)
pkarjala commented 9 years ago

This should now be resolved.