Issue Type: Bug Bug
Assignee: Unassigned
Components: Client
Created: 18/Aug/12 6:05 PM
Description:

API Issue:
The first note created for a client (whether at client, loan or loan transaction level) doesn't appear in the UI. Once a second note is added. Both appear.

For a new client if one note is added the request to get clients notes results in https://localhost:8443/mifosng-provider/api/v1/clients/13/notes?pretty=true&tenantIdentifier=default

{
"id": 3,
"clientId": 13,
"noteType":

{ "id": 100, "code": "noteType.client", "value": "Client note" }

,
"note": "one",
"createdById": 1,
"createdByUsername": "mifos",
"createdOn": 1345338065000,
"updatedById": 1,
"updatedByUsername": "mifos",
"updatedOn": 1345338065000
}

add a second and the result is:
[
{
"id": 4,
"clientId": 13,
"noteType":

{ "id": 100, "code": "noteType.client", "value": "Client note" }

,
"note": "two",
"createdById": 1,
"createdByUsername": "mifos",
"createdOn": 1345338204000,
"updatedById": 1,
"updatedByUsername": "mifos",
"updatedOn": 1345338204000
},
{
"id": 3,
"clientId": 13,
"noteType":

{ "id": 100, "code": "noteType.client", "value": "Client note" }

,
"note": "one",
"createdById": 1,
"createdByUsername": "mifos",
"createdOn": 1345338065000,
"updatedById": 1,
"updatedByUsername": "mifos",
"updatedOn": 1345338065000
}
]

i.e. an array is return if more than one note exists but not if only one... It should always be an array even if empty as that is what the UI expects.

Project: Mifos X
Priority: Minor Minor
Reporter: johnwoodlock
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to