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

Autosave is broken #499

Closed
fdv opened this Issue Sep 17, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@fdv
Member

fdv commented Sep 17, 2014

#<Article:0x007fe8718ca210> entering state Article::States::Draft
  TextFilter Load (0.3ms)  SELECT  "text_filters".* FROM "text_filters"  WHERE "text_filters"."id" = $1 LIMIT 1  [["id", 4]]
  Article Load (0.5ms)  SELECT "contents".* FROM "contents"  WHERE "contents"."type" IN ('Article') AND "contents"."id" IN ('first', '---
:order: id DESC
')
PG::InvalidTextRepresentation: ERROR:  invalid input syntax for integer: "first"
LINE 1: ...ts"."type" IN ('Article') AND "contents"."id" IN ('first', '...
                                                             ^
: SELECT "contents".* FROM "contents"  WHERE "contents"."type" IN ('Article') AND "contents"."id" IN ('first', '---
:order: id DESC
')
Completed 500 Internal Server Error in 17ms

ActiveRecord::StatementInvalid (PG::InvalidTextRepresentation: ERROR:  invalid input syntax for integer: "first"
LINE 1: ...ts"."type" IN ('Article') AND "contents"."id" IN ('first', '...
                                                             ^
: SELECT "contents".* FROM "contents"  WHERE "contents"."type" IN ('Article') AND "contents"."id" IN ('first', '---
:order: id DESC
')):
  app/controllers/admin/content_controller.rb:108:in `autosave'

@fdv fdv added the bug label Sep 17, 2014

@fdv fdv assigned mvz Sep 17, 2014

@fdv fdv added this to the 8.1.1 milestone Sep 17, 2014

@fdv fdv closed this in d4c2216 Sep 17, 2014

@fdv fdv assigned fdv and unassigned mvz Sep 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment