Author: yusaku
Date: Wed May  1 21:27:44 2013
New Revision: 1478199

URL: http://svn.apache.org/r1478199
Log:
AMBARI-2063. Admin features not available for user with admin rights under 
certain conditions. (yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-web/app/models/user.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1478199&r1=1478198&r2=1478199&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Wed May  1 21:27:44 2013
@@ -825,6 +825,9 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-2063. Admin features not available for user with admin rights under
+ certain conditions. (yusaku)
+
  AMBARI-2060. Initiate a recommission, on success, the operations dialog says
  decommission, not recommission. (yusaku)
 

Modified: incubator/ambari/trunk/ambari-web/app/models/user.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/models/user.js?rev=1478199&r1=1478198&r2=1478199&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/models/user.js (original)
+++ incubator/ambari/trunk/ambari-web/app/models/user.js Wed May  1 21:27:44 
2013
@@ -155,17 +155,16 @@ App.CreateUserForm = App.Form.extend({
     var object = this.get('object');
     var formValues = {};
     $.each(this.get('fields'), function () {
-      formValues[this.get('name')] = this.get('value');
+      formValues[Ember.String.decamelize(this.get('name'))] = 
this.get('value');
     });
 
     if (this.get('className')) {
-      App.store.createRecord(this.get('className'), formValues);
+      App.store.load(this.get('className'), formValues.user_name, formValues);
     }
     else {
       console.log("Please define class name for your form " + 
this.constructor);
     }
 
-    //App.store.commit();
     this.set('result', 1);
 
     return true;


Reply via email to