Make Profile Last Name optional in profile settings
This commit is contained in:
parent
a31fd1080b
commit
07d8570c80
@ -48,9 +48,8 @@ pscript.myc_add_user = function() {
|
||||
reqd: 1,
|
||||
label: 'Email Id of the user to add'
|
||||
}];
|
||||
console.log(pscript.is_erpnext_saas);
|
||||
|
||||
if(pscript.is_erpnext_saas==0) {
|
||||
if(!pscript.is_erpnext_saas) {
|
||||
fields = fields.concat([
|
||||
{
|
||||
fieldtype: 'Data',
|
||||
@ -61,7 +60,6 @@ pscript.myc_add_user = function() {
|
||||
{
|
||||
fieldtype: 'Data',
|
||||
fieldname: 'last_name',
|
||||
reqd: 1,
|
||||
label: 'Last Name'
|
||||
},
|
||||
{
|
||||
@ -78,8 +76,6 @@ pscript.myc_add_user = function() {
|
||||
fieldname: 'add'
|
||||
});
|
||||
|
||||
console.log(fields);
|
||||
|
||||
var d = new wn.widgets.Dialog({
|
||||
title: 'Add User',
|
||||
width: 400,
|
||||
|
@ -36,7 +36,7 @@ MyProfile = function(wrapper) {
|
||||
this.form = new wn.widgets.FieldGroup()
|
||||
this.form.make_fields(div, [
|
||||
{fieldname:'first_name', fieldtype:'Data',label:'First Name',reqd:1},
|
||||
{fieldname:'last_name', fieldtype:'Data',label:'Last Name',reqd:1},
|
||||
{fieldname:'last_name', fieldtype:'Data',label:'Last Name'},
|
||||
{fieldname:'bio', fieldtype:'Text',label:'Bio'},
|
||||
{fieldname:'update', fieldtype:'Button',label:'Update'}
|
||||
]);
|
||||
|
@ -3,7 +3,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>ERPNext</title>
|
||||
<meta name="author" content="">
|
||||
<script type="text/javascript">window._version_number="356"
|
||||
<script type="text/javascript">window._version_number="358"
|
||||
|
||||
wn={}
|
||||
wn.provide=function(namespace){var nsl=namespace.split('.');var l=nsl.length;var parent=window;for(var i=0;i<l;i++){var n=nsl[i];if(!parent[n]){parent[n]={}}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user