Issue with isNew() method in sqlicontent
You need to be logged in to post messages in the forums. New users may register here.
|
Matthieu Sévère
Member since: 18 March 2009
Posts: 34
|
Thursday 02 December 2010 3:49:51 pm
Hi,
I think there is an issue with the isNew() method of SQLIContent class when objects are in trash.
Indeed, the is New() method check if version is 1 and status is draft but when there is an object in the trash with version 1 the status is archived, so isNew() return false.
Thus, when calling SQLIContent::addLocation() with this object the SQLIContentpublisher is called but there is no node mapped with the object (as the object is in trash) and an exception is thrown "Cannot directly add a location to a not-yet-published content.".
Maybe status archived should be considered when defining an object as new
Cheers
|
|
You need to be logged in to post messages in the forums. New users may register here.