Code

Opened 8 years ago

Closed 8 years ago

#2921 closed defect (fixed)

[patch] json deserialization for Null foreign keys broken

Reported by: mir@… Owned by: adrian
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

if a foreign key has a NULL value, this is not treated correctly during deserialization. It tries to construct a Model with a primary key NULL. This is easily solved, see patch.

Attachments (1)

deserialize_null.diff (645 bytes) - added by mir@… 8 years ago.
promised patch

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by mir@…

promised patch

comment:1 Changed 8 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(In [4043]) Fixed #2921: deserialization no longer failes on NULL primary keys. Thanks, mir@….

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.