From 226af11f33e90305d20e0ac3c5fce223b3f98263 Mon Sep 17 00:00:00 2001
From: Alessandro Cosentino <cosenal@gmail.com>
Date: Sat, 4 Aug 2012 13:08:55 -0400
Subject: [PATCH] reset version number when not specified - again bug oc-1433

---
 settings/js/apps.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/settings/js/apps.js b/settings/js/apps.js
index cfef894c6f..7b608956ed 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -20,7 +20,11 @@ $(document).ready(function(){
 		$('#rightcontent p.license').show();
 		$('#rightcontent span.name').text(app.name);
 		$('#rightcontent small.externalapp').text(app.internallabel);
-		$('#rightcontent span.version').text(app.version);
+		if (app.version) {
+			$('#rightcontent span.version').text(app.version);
+		} else {
+			$('#rightcontent span.version').text('');
+		}
 		$('#rightcontent p.description').text(app.description);
 		$('#rightcontent img.preview').attr('src',app.preview);
 		$('#rightcontent small.externalapp').attr('style','visibility:visible');
-- 
GitLab