An error occurred ( Argument 'Index' is not a valid value ) when viewing Reports > Contents > Approvals , or when published content was submitted to an approval chain.
The database incorrectly viewed submitted content as archived content.
Make the following modification to the ViewApprovalList.ascx.cs file in siteroot \Workarea\controls\approval .
1. Make a backup copy of the original file.
2. Search for the following snippet in the code:
else if ((int)item["ContentType"] == 3333)
{
imagePath = _CommonApi.AppPath + "images/UI/Icons/brick.png";
}
else
{
imagePath = Convert.ToString(item["Icon"]);
}
3. Change it to read as follows:
else if ((int)item["ContentType"] == 3333)
{
imagePath = _CommonApi.AppPath + "images/UI/Icons/brick.png";
}
else if ((int)item["ContentType"] == 7)
{
imagePath = _CommonApi.AppPath + "images/UI/Icons/contentArchived.png";
}
else
{
imagePath = Convert.ToString(item["Icon"]);
}
4. Save the file.
Please sign in to leave a comment.