Skip to content

Commit 19a47c6

Browse files
fix if usetags = true and version api call #2394
1 parent 8ae9f9c commit 19a47c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Controllers/Api/CitationController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private HttpResponseMessage GetCitation(long id, CitationFormat format, int vers
250250
bool isPublic = false;
251251
if (id == 0) return Request.CreateErrorResponse(HttpStatusCode.PreconditionFailed, "Dataset id should be greater then 0.");
252252

253-
if(useTags)
253+
if(useTags && version_number == 0)
254254
{
255255
if (tag_number <= 0)
256256
return Request.CreateErrorResponse(HttpStatusCode.PreconditionFailed, "Tag not exist");

0 commit comments

Comments
 (0)