Autosave is broken #499

Closed
fdv opened this Issue Sep 17, 2014 · 0 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
@mvz mvz was assigned by fdv Sep 17, 2014
@fdv fdv added this to the 8.1.1 milestone Sep 17, 2014
@fdv fdv added a commit that closed this issue Sep 17, 2014
@fdv fdv Fixes broken autosave.
Fixes #499
d4c2216
@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