Skip to content

quoted correspondence below your signature truncates the fields .history() returns #2

@nerdyness

Description

@nerdyness

running

# working
rt.history('1234567', { :format => 'long' })
=> [ .., {"id"=>"xxxxxxxx", "ticket"=>"1234567", "timetaken"=>"5", "type"=>"Correspond", "field"=>"", "oldvalue"=>"", "newvalue"=>"", "data"=>"No Subject", "description"=>"Correspondence added by xxxxx", "content"=>"content...", "creator"=>"xxxx", "created"=>"2014-03-20 04:35:58", "attachments"=>[]} , ..]
# not working
rt.history('1234568', { :format => 'long' })
=> [ .., {"id"=>"xxxxxxxx", "ticket"=>"1234568", "timetaken"=>"10", "type"=>"Correspond", "field"=>"", "oldvalue"=>"", "newvalue"=>"", "data"=>"No Subject", "description"=>"Correspondence added by xxx", "content"=>"content..."} , ..]
# notice the last few fields are missing in the hash?

They disappear somewhere here:

th = Mail.new(item)

It's bad style anyway @TimCorcoran ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions