Hi Filip,
I will apply this hotfix once I am able to resolve an issue with the Kentico 6 upgrade.
Unfortunately, I had to revert back to Kentico 6 as I came across a database issue again with the same line of code
protected void Page_Load(object sender, EventArgs e)
{
DataSet ds = null;
CMS.TreeEngine.TreeProvider tree = new CMS.TreeEngine.TreeProvider();
ds = tree.SelectNodes("Sitename", "/NewsAndEvents/Latest-News/%", "en-Us", true, "CMS.News;CMS.BookingEvent;", "", "NodeLevel, NodeOrder");
The DataSet in the above code comes back as Null. I stepped into the code and noticed that the query that was sent to the database as shown below wasn't
fetching any result back?
SELECT * FROM View_CONTENT_news_Joined
WHERE (NodeSiteID = 3) AND (Published = 1)
AND (DocumentCulture = 'en-US')
AND (NodeAliasPath LIKE N'/NewsAndEvents/Latest-News/%')
On running the query again on View_Content_news_Joined I noticed that few columns contained the wrong data type? For e.g. Document ID column had an 'nVarchar' and vice versa.
It looks like the data had moved to the right into the wrong columns.