From b78e64a272fac635db7b3301252830488829fefd Mon Sep 17 00:00:00 2001
From: Roberto Sánchez <roberto.sanchez@curisit.net>
Date: Mon, 13 Jan 2014 09:53:52 +0000
Subject: [PATCH] #394 feature - Added user roles in form edition

---
 securis/src/main/resources/static/js/catalogs.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/securis/src/main/resources/static/js/catalogs.js b/securis/src/main/resources/static/js/catalogs.js
index cde7a57..10dc1dd 100644
--- a/securis/src/main/resources/static/js/catalogs.js
+++ b/securis/src/main/resources/static/js/catalogs.js
@@ -140,6 +140,7 @@
 		_current.fields.forEach(function(f) {
 			if (f.resource)
 				refsFields.push(f)
+
 		});
 		
 		var that = this;
@@ -153,6 +154,7 @@
 		console.log('promises: ' + promises.length + ' ')
 		console.log(promises)
 		$q.all(promises).then(function() {
+			
 			for (var k in refs) {
 				var pk = that.getPk(that.getMetadata(that.getField(k).resource))
 				console.log('PK field for ' + k + ' is ' + pk)
@@ -167,8 +169,13 @@
 				console.log('Ready for combo for ' + k)
 				console.log(comboData);
 			}
-			
+			_current.fields.forEach(function(f) {
+				if (f.values)
+					refs[f.name] = f.values;
+			});
 		})
+		
+		console.log(refs);
 		return refs;
 	} 
 	

--
Gitblit v1.3.2