Skip to content

Commit

Permalink
Fix #99: Issues when creating edu. program profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yagodin committed Jan 27, 2016
1 parent c125ae1 commit 7e5352d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions R7.University.Launchpad/EditEduProgramProfile.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ protected override void OnUpdateItem (EduProgramProfileInfo item)
item.CreatedByUserID = item.LastModifiedByUserID;
}
}
}

protected override void AfterUpdateItem (EduProgramProfileInfo item)
{
// update referenced items
Controller.UpdateDocuments (formEditDocuments.GetData (), "EduProgramProfileID", item.EduProgramProfileID);
Controller.UpdateEduProgramProfileForms (formEditEduForms.GetData (), item.EduProgramProfileID);
Expand Down
3 changes: 2 additions & 1 deletion R7.University/components/UniversityControllerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public void UpdateDocuments (IList<DocumentInfo> documents, string itemKey, int
{
if (document.DocumentID <= 0)
{
// document.ItemID = itemKey + "=" + itemId;
document.ItemID = itemKey + "=" + itemId;
Add<DocumentInfo> (document);
}
else
Expand Down Expand Up @@ -430,6 +430,7 @@ public void UpdateEduProgramProfileForms (IList<EduProgramProfileFormInfo> eduFo
{
if (eduForm.EduProgramProfileFormID <= 0)
{
eduForm.EduProgramProfileID = eduProgramProfileId;
Add<EduProgramProfileFormInfo> (eduForm);
}
else
Expand Down

0 comments on commit 7e5352d

Please sign in to comment.