Skip to content

Commit

Permalink
Updating GetChildFormSql to respect md_dynamic_profile_detail records…
Browse files Browse the repository at this point in the history
… on the profile. Also, giving it a predictable ordering.
  • Loading branch information
davidschlum committed Sep 4, 2018
1 parent 5f8fddc commit c93023f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Added.netFORUM.GDPR.Extension/ExportService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected virtual ChildForm GetChildFormFromReader(DbDataReader rdr)

protected virtual string GetChildFormSql()
{
return "SELECT dyc_key, dyc_description, dyc_grid_title, dyc_sql FROM md_dynamic_form_child WITH (NOLOCK) WHERE dyc_dyn_key = @dyn_key AND dyc_delete_flag = 0";
return "SELECT dyc_key, dyc_description, dyc_grid_title, dyc_sql FROM md_dynamic_form WITH (NOLOCK) JOIN md_dynamic_profile_detail WITH (NOLOCK) ON dyn_key = dpd_dyn_key JOIN md_dynamic_form_child WITH (NOLOCK) ON dpd_dyc_key = dyc_key WHERE dyn_key = 'EE5C039E-CF0F-4D0E-BA8A-84F9D1C6A986' AND dyn_delete_flag = 0 AND dpd_delete_flag = 0 AND dyc_delete_flag = 0 ORDER BY CAST(COALESCE(dpd_row,0) AS Int), dpd_key";
}
public virtual void WriteFileToResponse(XDocument dataExport, HttpResponse response, string filename)
{
Expand Down

0 comments on commit c93023f

Please sign in to comment.