From b553f43c786bdb2405cc108ba61bf17e83d79847 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Mon, 12 Feb 2018 22:45:16 -0500 Subject: [PATCH] Add PersonFullName calculated field --- src/model/course/SectionParticipant.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/model/course/SectionParticipant.js b/src/model/course/SectionParticipant.js index 46dd615..52e0198 100644 --- a/src/model/course/SectionParticipant.js +++ b/src/model/course/SectionParticipant.js @@ -73,6 +73,12 @@ Ext.define('Slate.model.course.SectionParticipant', { { name: 'PersonLastName', mapping: 'Person.LastName' + }, + { + name: 'PersonFullName', + calculate: function(data) { + return data.PersonFirstName + ' ' + data.PersonLastName; + } } ],