Skip to content

Commit

Permalink
JM/WTH - (SPARCDashboard) Admin Edit DateTimePicker Bug [#151329978]
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiel86 committed Sep 26, 2017
1 parent 5de4514 commit a9d5e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/sub_service_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ class SubServiceRequest < ApplicationRecord
scope :in_work_fulfillment, -> { where(in_work_fulfillment: true) }

def consult_arranged_date=(date)
write_attribute(:consult_arranged_date, Time.strptime(date, "%m/%d/%Y")) if date.present?
write_attribute(:consult_arranged_date, date.present? ? Time.strptime(date, "%m/%d/%Y") : nil)
end

def requester_contacted_date=(date)
write_attribute(:requester_contacted_date, Time.strptime(date, "%m/%d/%Y")) if date.present?
write_attribute(:requester_contacted_date, date.present? ? Time.strptime(date, "%m/%d/%Y") : nil)
end

def status= status
Expand Down

0 comments on commit a9d5e6e

Please sign in to comment.