Describe the bug
The link generated by FormAndList to edit a list item has a corrupt querystring value for UserDefinedRowId. Instead of the row number of the row, I get UserDefinedRowId=%7b0%7d - the same in every row.
To Reproduce
Steps to reproduce the behavior:
DNN v9.11.2
FormAndList v6.5.8
PlantAnApp v1.26
This happened before. I had FnL v6.5.5. I had upgraded PlantAnApp to v1.26 and afterwards I saw this error. I asked PlantAnApp support. They provided a patched DLL for FnL v6.5.5. This is going back 3 years. I forgot about the patch and recently upgraded to FnL 6.5.8 and shortly thereafter the client saw the problem again. I asked PlantAnApp for a new patch but they are too busy getting their 1.28 release compatible w 10.1x and suggested it is best to get fixed properly via this channel. They provided a screenshot of the code location and the code to add. I've attached it.
Expected behavior
With the patch PAA provided, the value of UserDefinedRowId was as expected.
Screenshots
a screenshot of the FnL module code along with what PAA added.
Here is the text of the inserted code from the screenshot, for your convenience:
if (EditUrlPattern.Contains("?"))
EditUrlPattern += "&" + DataTableColumn.RowId.ToString(CultureInfo.InvariantCulture) + "={0}";
else
EditUrlPattern += "?" + DataTableColumn.RowId.ToString(CultureInfo.InvariantCulture) + "={0}";
Describe the bug
The link generated by FormAndList to edit a list item has a corrupt querystring value for UserDefinedRowId. Instead of the row number of the row, I get UserDefinedRowId=%7b0%7d - the same in every row.
To Reproduce
Steps to reproduce the behavior:
DNN v9.11.2
FormAndList v6.5.8
PlantAnApp v1.26
This happened before. I had FnL v6.5.5. I had upgraded PlantAnApp to v1.26 and afterwards I saw this error. I asked PlantAnApp support. They provided a patched DLL for FnL v6.5.5. This is going back 3 years. I forgot about the patch and recently upgraded to FnL 6.5.8 and shortly thereafter the client saw the problem again. I asked PlantAnApp for a new patch but they are too busy getting their 1.28 release compatible w 10.1x and suggested it is best to get fixed properly via this channel. They provided a screenshot of the code location and the code to add. I've attached it.
Expected behavior
With the patch PAA provided, the value of UserDefinedRowId was as expected.
Screenshots
a screenshot of the FnL module code along with what PAA added.
Here is the text of the inserted code from the screenshot, for your convenience:
if (EditUrlPattern.Contains("?"))
EditUrlPattern += "&" + DataTableColumn.RowId.ToString(CultureInfo.InvariantCulture) + "={0}";
else
EditUrlPattern += "?" + DataTableColumn.RowId.ToString(CultureInfo.InvariantCulture) + "={0}";