Browse files

Release 6.5.0RC2

  • Loading branch information...
1 parent 75c9ac4 commit 03152d64ceeeab5a4ca28e36134b257159df8e3b John Mertic committed May 9, 2012
Showing with 982 additions and 697 deletions.
  1. +10 −8 cache/include/javascript/sugar_grp1.js
  2. +3 −3 cache/include/javascript/sugar_grp_emails.js
  3. +60 −60 files.md5
  4. +1 −1 include/ListView/ListView.php
  5. +1 −1 include/ListView/ListViewData.php
  6. +2 −1 include/ListView/ListViewDisplay.php
  7. +2 −2 include/ListView/ListViewSmarty.php
  8. +11 −1 include/MVC/SugarApplication.php
  9. +0 −2 include/SearchForm/tpls/SugarSpot.tpl
  10. +1 −1 include/SugarCharts/Jit/tpls/chart.tpl
  11. +3 −3 include/SugarEmailAddress/SugarEmailAddress.js
  12. +2 −3 include/database/DBManager.php
  13. +1 −1 include/database/MssqlManager.php
  14. +4 −0 include/javascript/javascript.php
  15. +36 −18 include/javascript/jquery/markitup/jquery.markitup.js
  16. +10 −8 include/javascript/sugar_3.js
  17. +1 −1 include/utils/mvc_utils.php
  18. +12 −6 jssource/src_files/include/SugarEmailAddress/SugarEmailAddress.js
  19. +70 −67 jssource/src_files/include/javascript/sugar_3.js
  20. +7 −0 jssource/src_files/themes/Sugar5/js/style.js
  21. +2 −4 maintenance.php
  22. +1 −1 modules/Administration/DisplayWarnings.php
  23. +7 −4 modules/Administration/controller.php
  24. +1 −1 modules/Administration/language/en_us.lang.php
  25. +8 −0 modules/Calls/language/en_us.lang.php
  26. +19 −3 modules/Calls/metadata/editviewdefs.php
  27. +3 −3 modules/Calls/tpls/footer.tpl
  28. +4 −4 modules/Documents/metadata/subpanels/ForContractType.php
  29. +376 −372 modules/Documents/vardefs.php
  30. +2 −2 modules/DynamicFields/DynamicField.php
  31. +2 −2 modules/EAPM/metadata/editviewdefs.php
  32. +7 −0 modules/Emails/templates/emailDetailView.tpl
  33. +3 −2 modules/Home/QuickSearch.php
  34. +8 −0 modules/Meetings/language/en_us.lang.php
  35. +1 −1 modules/Meetings/vardefs.php
  36. +1 −1 modules/MergeRecords/Step3.php
  37. +19 −0 modules/ModuleBuilder/MB/MBLanguage.php
  38. +31 −0 modules/ModuleBuilder/MB/MBModule.php
  39. +24 −2 modules/ModuleBuilder/MB/MBPackage.php
  40. +8 −3 modules/ModuleBuilder/MB/ModuleBuilder.php
  41. +1 −1 modules/ModuleBuilder/javascript/SimpleList.js
  42. +1 −2 modules/ModuleBuilder/language/en_us.lang.php
  43. +14 −0 modules/ModuleBuilder/parsers/relationships/AbstractRelationship.php
  44. +6 −2 modules/Schedulers/Scheduler.php
  45. +1 −1 modules/Schedulers/metadata/detailviewdefs.php
  46. +32 −2 modules/Schedulers/vardefs.php
  47. +16 −2 modules/SchedulersJobs/SchedulersJob.php
  48. +2 −1 modules/UpgradeWizard/language/en_us.lang.php
  49. +2 −1 modules/UpgradeWizard/silentUpgrade_step1.php
  50. +1 −1 modules/UpgradeWizard/systemCheck.php
  51. +20 −17 modules/UpgradeWizard/uw_utils.php
  52. +26 −31 modules/Users/Changenewpassword.php
  53. +1 −9 modules/Users/GeneratePassword.php
  54. +20 −18 modules/Users/User.php
  55. +8 −7 modules/Users/vardefs.php
  56. +9 −3 service/core/SoapHelperWebService.php
  57. +4 −1 service/v4/SugarWebServiceUtilv4.php
  58. +4 −1 soap/SoapSugarUsers.php
  59. +4 −4 sugar_version.php
  60. +18 −0 tests/include/database/MssqlManagerTest.php
  61. +27 −0 tests/modules/SchedulersJobs/SchedulersJobsTest.php
  62. +1 −1 themes/Sugar5/js/style.js
View
18 cache/include/javascript/sugar_grp1.js
@@ -353,18 +353,21 @@ sugarListView.prototype.check_item=function(cb,form){if(cb.checked){sugarListVie
sugarListView.prototype.toggleSelected();}
sugarListView.prototype.toggleSelected=function(){var numSelected=sugarListView.get_num_selected();var selectedRecords=document.getElementById("selectedRecordsTop");var selectActions=document.getElementById("selectActions");var selectActionsDisabled=document.getElementById("selectActionsDisabled");if(numSelected>0){$(selectedRecords).removeAttr("style").addClass("show");$(".selectActionsDisabled").hide();jQuery('ul[name=selectActions]').each(function(){jQuery(this).removeAttr("style").addClass("show");});}else{$(selectedRecords).hide();$(".selectActionsDisabled").removeAttr("style").addClass("show");jQuery('ul[name=selectActions]').each(function(){jQuery(this).hide();});}}
sugarListView.prototype.updateUid=function(cb,form){if(form.name=='MassUpdate'&&form.uid&&form.uid.value&&cb.value&&form.uid.value.indexOf(cb.value)!=-1){if(form.uid.value.indexOf(','+cb.value)!=-1){form.uid.value=form.uid.value.replace(','+cb.value,'');}else if(form.uid.value.indexOf(cb.value+',')!=-1){form.uid.value=form.uid.value.replace(cb.value+',','');}else if(form.uid.value.indexOf(cb.value)!=-1){form.uid.value=form.uid.value.replace(cb.value,'');}}}
-sugarListView.prototype.check_entire_list=function(form,field,value,list_count){count=0;document.MassUpdate.massall.checked=true;document.MassUpdate.massall.disabled=true;for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field&&form.elements[i].disabled==false){if(form.elements[i].checked!=value)count++;form.elements[i].checked=value;form.elements[i].disabled=true;}}
+sugarListView.prototype.check_entire_list=function(form,field,value,list_count){count=0;$(document.MassUpdate.massall).each(function(){$(this).attr('checked',true).attr('disabled',true);});for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field&&form.elements[i].disabled==false){if(form.elements[i].checked!=value)count++;form.elements[i].checked=value;form.elements[i].disabled=true;}}
document.MassUpdate.select_entire_list.value=1;sugarListView.update_count(list_count,false);sugarListView.prototype.toggleSelected();}
-sugarListView.prototype.check_all=function(form,field,value,pageTotal){count=0;document.MassUpdate.massall.checked=value;if(document.MassUpdate.select_entire_list&&document.MassUpdate.select_entire_list.value==1){sugarListView.prototype.toggleSelected();document.MassUpdate.massall.disabled=true;}else
-document.MassUpdate.massall.disabled=false;for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field&&!(form.elements[i].disabled==true&&form.elements[i].checked==false)){form.elements[i].disabled=false;if(form.elements[i].checked!=value)
+sugarListView.prototype.check_all=function(form,field,value,pageTotal){count=0;$(document.MassUpdate.massall).each(function(){$(this).attr('checked',value);});if(document.MassUpdate.select_entire_list&&document.MassUpdate.select_entire_list.value==1)
+{sugarListView.prototype.toggleSelected();$(document.MassUpdate.massall).each(function(){$(this).attr('disabled',true);});}
+else
+{$(document.MassUpdate.massall).each(function(){$(this).attr('disabled',false);});}
+for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field&&!(form.elements[i].disabled==true&&form.elements[i].checked==false)){form.elements[i].disabled=false;if(form.elements[i].checked!=value)
count++;form.elements[i].checked=value;if(!value){sugarListView.prototype.updateUid(form.elements[i],form);}}}
if(pageTotal>=0)
sugarListView.update_count(pageTotal);else if(value)
sugarListView.update_count(count,true);else
sugarListView.update_count(-1*count,true);sugarListView.prototype.toggleSelected();}
sugarListView.check_all=sugarListView.prototype.check_all;sugarListView.confirm_action=sugarListView.prototype.confirm_action;sugarListView.prototype.check_boxes=function(){var inputsCount=0;var checkedCount=0;var existing_onload=window.onload;var theForm=document.MassUpdate;inputs_array=theForm.elements;if(typeof theForm.uid.value!='undefined'&&theForm.uid.value!=""){checked_items=theForm.uid.value.split(",");if(theForm.select_entire_list.value==1){document.MassUpdate.massall.disabled=true;sugarListView.prototype.toggleSelected();$("#button_select_all_top").click();}
for(var wp=0;wp<inputs_array.length;wp++){if(inputs_array[wp].name=="mass[]"){inputsCount++;if(theForm.select_entire_list.value==1){inputs_array[wp].checked=true;inputs_array[wp].disabled=true;checkedCount++;}
-else{for(i in checked_items){if(inputs_array[wp].value==checked_items[i]){checkedCount++;inputs_array[wp].checked=true;sugarListView.prototype.check_item(inputs_array[wp],document.MassUpdate);}}}}}}
+else{for(i in checked_items){if(inputs_array[wp].value==checked_items[i]){checkedCount++;inputs_array[wp].checked=true;}}}}}}
else{for(var wp=0;wp<inputs_array.length;wp++){if(inputs_array[wp].name=="mass[]"){inputs_array[wp].checked=false;inputs_array[wp].disabled=false;}}
if(document.MassUpdate.massall){document.MassUpdate.massall.checked=false;document.MassUpdate.massall.disabled=false;}
sugarListView.update_count(0)}
@@ -458,10 +461,9 @@ if(item.fn){item.fn.call(context,item.obj);}};var i,len,item,test;for(i=0,len=th
else{notAvail.push(item);}}}
this._doWhenretryCount--;if(tryAgain){for(i=this._doWhenStack.length-1;i>-1;i--){item=this._doWhenStack[i];if(!item||!item.check){this._doWhenStack.splice(i,1);}}
this._startDoWhenInterval();}else{if(this._doWhenInterval){this._doWhenInterval.cancel();this._doWhenInterval=null;}}
-this._doWhenLocked=false;},buildAccessKeyLabels:function()
-{if(typeof(Y.env.ua)!=='undefined'){envStr='';browserOS=Y.env.ua['os'];isIE=Y.env.ua['ie'];isCR=Y.env.ua['chrome'];isFF=Y.env.ua['gecko'];isWK=Y.env.ua['webkit'];isOP=Y.env.ua['opera'];controlKey='';if(browserOS=='macintosh'){if(isIE){controlKey='Alt+';}else if(isWK){controlKey='Ctrl+Opt+';}else if(isOP){controlKey='Shift+Esc: ';}else{controlKey='Ctrl+';}}else{if(isFF){controlKey='Alt+Shift+';}else if(isOP){controlKey='Shift+Esc: ';}else{controlKey='Alt+';}}
+this._doWhenLocked=false;},buildAccessKeyLabels:function(){if(typeof(Y.env.ua)!=='undefined'){envStr='';browserOS=Y.env.ua['os'];isIE=Y.env.ua['ie'];isCR=Y.env.ua['chrome'];isFF=Y.env.ua['gecko'];isWK=Y.env.ua['webkit'];isOP=Y.env.ua['opera'];controlKey='';if(browserOS=='macintosh'){if(isIE){controlKey='Alt+';}else if(isWK){controlKey='Ctrl+Opt+';}else if(isOP){controlKey='Shift+Esc: ';}else{controlKey='Ctrl+';}}else{if(isFF){controlKey='Alt+Shift+';}else if(isOP){controlKey='Shift+Esc: ';}else{controlKey='Alt+';}}
allButtons=document.getElementsByTagName('input');for(i=0;i<allButtons.length;i++){if(allButtons[i].getAttribute('accesskey')&&allButtons[i].getAttribute('type')&&allButtons[i].getAttribute('type')=='button'){allButtons[i].setAttribute('title',allButtons[i].getAttribute('title')+' ['+controlKey+allButtons[i].getAttribute('accesskey')+']');}}
-if(typeof(keyboardhelpText)=='string'){keyboardhelpText=keyboardhelpText.replace(/Alt\+/g,controlKey);}}}};}();SUGAR.util.additionalDetailsCache=new Array();SUGAR.util.additionalDetailsCalls=new Array();if(typeof YAHOO!='undefined')YAHOO.util.Event.addListener(window,'load',SUGAR.util.setMaxLength);SUGAR.savedViews=function(){var selectedOrderBy;var selectedSortOrder;var displayColumns;var hideTabs;var columnsMeta;return{setChooser:function(){var displayColumnsDef=new Array();var hideTabsDef=new Array();var left_td=document.getElementById('display_tabs_td');if(typeof left_td=='undefined'||left_td==null)return;var right_td=document.getElementById('hide_tabs_td');var displayTabs=left_td.getElementsByTagName('select')[0];var hideTabs=right_td.getElementsByTagName('select')[0];for(i=0;i<displayTabs.options.length;i++){displayColumnsDef.push(displayTabs.options[i].value);}
+$("#shortcuts_dialog").html(function(i,text){return text.replace(/Alt\+/g,controlKey);});}}};}();SUGAR.util.additionalDetailsCache=new Array();SUGAR.util.additionalDetailsCalls=new Array();if(typeof YAHOO!='undefined')YAHOO.util.Event.addListener(window,'load',SUGAR.util.setMaxLength);SUGAR.savedViews=function(){var selectedOrderBy;var selectedSortOrder;var displayColumns;var hideTabs;var columnsMeta;return{setChooser:function(){var displayColumnsDef=new Array();var hideTabsDef=new Array();var left_td=document.getElementById('display_tabs_td');if(typeof left_td=='undefined'||left_td==null)return;var right_td=document.getElementById('hide_tabs_td');var displayTabs=left_td.getElementsByTagName('select')[0];var hideTabs=right_td.getElementsByTagName('select')[0];for(i=0;i<displayTabs.options.length;i++){displayColumnsDef.push(displayTabs.options[i].value);}
if(typeof hideTabs!='undefined'){for(i=0;i<hideTabs.options.length;i++){hideTabsDef.push(hideTabs.options[i].value);}}
if(!SUGAR.savedViews.clearColumns)
document.getElementById('displayColumnsDef').value=displayColumnsDef.join('|');document.getElementById('hideTabsDef').value=hideTabsDef.join('|');},select:function(saved_search_select){for(var wp=0;wp<document.search_form.saved_search_select.options.length;wp++){if(typeof document.search_form.saved_search_select.options[wp].value!='undefined'&&document.search_form.saved_search_select.options[wp].value==saved_search_select){document.search_form.saved_search_select.selectedIndex=wp;document.search_form.ss_delete.style.display='';document.search_form.ss_update.style.display='';}}},saved_search_action:function(action,delete_lang){if(action=='delete'){if(!confirm(delete_lang))return;}
@@ -621,7 +623,7 @@ t+=SUGAR.util.innerText(c);}
return t;},callOnChangeListers:function(field){var listeners=YAHOO.util.Event.getListeners(field,'change');if(listeners!=null){for(var i=0;i<listeners.length;i++){var l=listeners[i];l.fn.call(l.scope?l.scope:this,l.obj);}}},closeActivityPanel:{show:function(module,id,new_status,viewType,parentContainerId){if(SUGAR.util.closeActivityPanel.panel)
SUGAR.util.closeActivityPanel.panel.destroy();var singleModule=SUGAR.language.get("app_list_strings","moduleListSingular")[module];singleModule=typeof(singleModule!='undefined')?singleModule.toLowerCase():'';var closeText=SUGAR.language.get("app_strings","LBL_CLOSE_ACTIVITY_CONFIRM").replace("#module#",singleModule);SUGAR.util.closeActivityPanel.panel=new YAHOO.widget.SimpleDialog("closeActivityDialog",{width:"300px",fixedcenter:true,visible:false,draggable:false,close:true,text:closeText,constraintoviewport:true,buttons:[{text:SUGAR.language.get("app_strings","LBL_EMAIL_OK"),handler:function(){if(SUGAR.util.closeActivityPanel.panel)
SUGAR.util.closeActivityPanel.panel.hide();ajaxStatus.showStatus(SUGAR.language.get('app_strings','LBL_SAVING'));var args="action=save&id="+id+"&record="+id+"&status="+new_status+"&module="+module;var callback={success:function(o)
-{window.setTimeout("document.getElementById('search_form').submit()",0);},argument:{'parentContainerId':parentContainerId}};YAHOO.util.Connect.asyncRequest('POST','index.php',callback,args);},isDefault:true},{text:SUGAR.language.get("app_strings","LBL_EMAIL_CANCEL"),handler:function(){SUGAR.util.closeActivityPanel.panel.hide();}}]});SUGAR.util.closeActivityPanel.panel.setHeader(SUGAR.language.get("app_strings","LBL_CLOSE_ACTIVITY_HEADER"));SUGAR.util.closeActivityPanel.panel.render(document.body);SUGAR.util.closeActivityPanel.panel.show();}},setEmailPasswordDisplay:function(id,exists,formName){link=document.getElementById(id+'_link');pwd=document.getElementById(id);if(!pwd||!link)return;if(exists){pwd.style.display='none';link.style.display='';if(typeof(formName)!='undefined')
+{window.setTimeout(function(){if(document.getElementById('search_form'))document.getElementById('search_form').submit();else window.location.reload(true);},0);},argument:{'parentContainerId':parentContainerId}};YAHOO.util.Connect.asyncRequest('POST','index.php',callback,args);},isDefault:true},{text:SUGAR.language.get("app_strings","LBL_EMAIL_CANCEL"),handler:function(){SUGAR.util.closeActivityPanel.panel.hide();}}]});SUGAR.util.closeActivityPanel.panel.setHeader(SUGAR.language.get("app_strings","LBL_CLOSE_ACTIVITY_HEADER"));SUGAR.util.closeActivityPanel.panel.render(document.body);SUGAR.util.closeActivityPanel.panel.show();}},setEmailPasswordDisplay:function(id,exists,formName){link=document.getElementById(id+'_link');pwd=document.getElementById(id);if(!pwd||!link)return;if(exists){pwd.style.display='none';link.style.display='';if(typeof(formName)!='undefined')
removeFromValidate(formName,id);}else{pwd.style.display='';link.style.display='none';}},setEmailPasswordEdit:function(id){link=document.getElementById(id+'_link');pwd=document.getElementById(id);if(!pwd||!link)return;pwd.style.display='';link.style.display='none';},validateFileExt:function(fileName,allowedTypes){var ext=fileName.split('.').pop().toLowerCase();for(var i=allowedTypes.length;i>=0;i--){if(ext===allowedTypes[i]){return true;}}
return false;},arrayIndexOf:function(arr,val,start){if(typeof arr.indexOf=="function")
return arr.indexOf(val,start);for(var i=(start||0),j=arr.length;i<j;i++){if(arr[i]===val){return i;}}
View
6 cache/include/javascript/sugar_grp_emails.js
@@ -194,19 +194,19 @@ this.freezeEvent(e);}}},getEvent:function(event){return(event?event:window.event
return;this.addInProgress=true;if(!address)
address="";var insertInto=Dom.get(tableId);var parentObj=insertInto.parentNode;var newContent=document.createElement("input");var nav=new String(navigator.appVersion);var newContentPrimaryFlag=document.createElement("input");var newContentReplyToFlag=document.createElement("input");var newContentOptOutFlag=document.createElement("input");var newContentInvalidFlag=document.createElement("input");var newContentVerifiedFlag=document.createElement("input");var newContentVerifiedValue=document.createElement("input");var removeButton=document.createElement("button");var removeButtonImg=document.createElement('img');var tbody=document.createElement("tbody");var tr=document.createElement("tr");var td1=document.createElement("td");var td2=document.createElement("td");var td3=document.createElement("td");var td4=document.createElement("td");var td5=document.createElement("td");var td6=document.createElement("td");var td7=document.createElement("td");var td8=document.createElement("td");var tabIndexCount=0;if(typeof(SUGAR.TabFields)!='undefined'&&typeof(SUGAR.TabFields['email1'])!='undefined'){tabIndexCount=SUGAR.TabFields['email1'];}
newContent.setAttribute("type","text");newContent.setAttribute("name",this.id+"emailAddress"+this.numberEmailAddresses);newContent.setAttribute("id",this.id+"emailAddress"+this.numberEmailAddresses);newContent.setAttribute("tabindex",tabIndexCount);newContent.setAttribute("size","30");newContent.setAttribute("title",SUGAR.language.get('app_strings','LBL_EMAIL_TITLE'));if(address!=''){newContent.setAttribute("value",address);}
-removeButtonImg.setAttribute('src',"index.php?entryPoint=getImage&themeName="+SUGAR.themes.theme_name+"&imageName=id-ff-remove-nobg.png");removeButton.setAttribute("id",this.id+"removeButton"+this.numberEmailAddresses);removeButton.setAttribute("class","id-ff-remove");removeButton.setAttribute("name",this.numberEmailAddresses);removeButton.eaw=this;removeButton.setAttribute("tabindex",tabIndexCount);removeButton.onclick=function(){this.eaw.removeEmailAddress(this.name);};removeButton.appendChild(removeButtonImg);newContentPrimaryFlag.setAttribute("type","radio");newContentPrimaryFlag.setAttribute("name",this.id+"emailAddressPrimaryFlag");newContentPrimaryFlag.setAttribute("id",this.id+"emailAddressPrimaryFlag"+this.numberEmailAddresses);newContentPrimaryFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentPrimaryFlag.setAttribute("enabled","true");newContentPrimaryFlag.setAttribute("tabindex",tabIndexCount);newContentReplyToFlag.setAttribute("type","radio");newContentReplyToFlag.setAttribute("name",this.id+"emailAddressReplyToFlag");newContentReplyToFlag.setAttribute("id",this.id+"emailAddressReplyToFlag"+this.numberEmailAddresses);newContentReplyToFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentReplyToFlag.setAttribute("enabled","true");newContentReplyToFlag.setAttribute("tabindex",tabIndexCount);newContentReplyToFlag.eaw=this;newContentReplyToFlag['onclick']=function(){var form=document.forms[this.eaw.emailView];if(!form){form=document.forms['editContactForm'];}
+removeButtonImg.setAttribute('src',"index.php?entryPoint=getImage&themeName="+SUGAR.themes.theme_name+"&imageName=id-ff-remove-nobg.png");removeButton.setAttribute("id",this.id+"removeButton"+this.numberEmailAddresses);removeButton.setAttribute("class","id-ff-remove");removeButton.setAttribute("name",this.numberEmailAddresses);removeButton.eaw=this;removeButton.setAttribute("tabindex",tabIndexCount);removeButton.onclick=function(){this.eaw.removeEmailAddress(this.name);return false;};removeButton.appendChild(removeButtonImg);newContentPrimaryFlag.setAttribute("type","radio");newContentPrimaryFlag.setAttribute("name",this.id+"emailAddressPrimaryFlag");newContentPrimaryFlag.setAttribute("id",this.id+"emailAddressPrimaryFlag"+this.numberEmailAddresses);newContentPrimaryFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentPrimaryFlag.setAttribute("enabled","true");newContentPrimaryFlag.setAttribute("tabindex",tabIndexCount);newContentReplyToFlag.setAttribute("type","radio");newContentReplyToFlag.setAttribute("name",this.id+"emailAddressReplyToFlag");newContentReplyToFlag.setAttribute("id",this.id+"emailAddressReplyToFlag"+this.numberEmailAddresses);newContentReplyToFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentReplyToFlag.setAttribute("enabled","true");newContentReplyToFlag.setAttribute("tabindex",tabIndexCount);newContentReplyToFlag.eaw=this;newContentReplyToFlag['onclick']=function(){var form=document.forms[this.eaw.emailView];if(!form){form=document.forms['editContactForm'];}
var nav=new String(navigator.appVersion);if(nav.match(/MSIE/gim)){for(i=0;i<form.elements.length;i++){var id=new String(form.elements[i].id);if(id.match(/emailAddressReplyToFlag/gim)&&form.elements[i].type=='radio'&&id!=this.eaw.id){form.elements[i].checked=false;}}}
for(i=0;i<form.elements.length;i++){var id=new String(form.elements[i].id);if(id.match(/emailAddressReplyToFlag/gim)&&form.elements[i].type=='radio'&&id!=this.eaw.id){this.eaw.replyToFlagObject[this.eaw.id]=false;}}
if(this.eaw.replyToFlagObject[this.id]){this.eaw.replyToFlagObject[this.id]=false;this.checked=false;}else{this.eaw.replyToFlagObject[this.id]=true;this.checked=true;}}
-newContentOptOutFlag.setAttribute("type","checkbox");newContentOptOutFlag.setAttribute("name",this.id+"emailAddressOptOutFlag[]");newContentOptOutFlag.setAttribute("id",this.id+"emailAddressOptOutFlag"+this.numberEmailAddresses);newContentOptOutFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentOptOutFlag.setAttribute("enabled","true");newContentOptOutFlag.eaw=this;newContentOptOutFlag.setAttribute("tabindex",tabIndexCount);newContentOptOutFlag['onClick']=function(){this.eaw.toggleCheckbox(this)};newContentInvalidFlag.setAttribute("type","checkbox");newContentInvalidFlag.setAttribute("name",this.id+"emailAddressInvalidFlag[]");newContentInvalidFlag.setAttribute("id",this.id+"emailAddressInvalidFlag"+this.numberEmailAddresses);newContentInvalidFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentInvalidFlag.setAttribute("enabled","true");newContentInvalidFlag.eaw=this;newContentInvalidFlag.setAttribute("tabindex",tabIndexCount);newContentInvalidFlag['onClick']=function(){this.eaw.toggleCheckbox(this)};newContentVerifiedFlag.setAttribute("type","hidden");newContentVerifiedFlag.setAttribute("name",this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses);newContentVerifiedFlag.setAttribute("id",this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses);newContentVerifiedFlag.setAttribute("value","true");newContentVerifiedValue.setAttribute("type","hidden");newContentVerifiedValue.setAttribute("name",this.id+"emailAddressVerifiedValue"+this.numberEmailAddresses);newContentVerifiedValue.setAttribute("id",this.id+"emailAddressVerifiedValue"+this.numberEmailAddresses);newContentVerifiedValue.setAttribute("value",address);newContentVerifiedValue.setAttribute("tabindex",tabIndexCount);this.emailView=(this.emailView=='')?'EditView':this.emailView;addToValidateVerified(this.emailView,this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses,'bool',false,SUGAR.language.get('app_strings','LBL_VERIFY_EMAIL_ADDRESS'));tr.setAttribute("id",this.id+"emailAddressRow"+this.numberEmailAddresses);td1.setAttribute("nowrap","NOWRAP");td3.setAttribute("align","center");td4.setAttribute("align","center");td5.setAttribute("align","center");td6.setAttribute("align","center");td1.appendChild(newContent);td1.appendChild(document.createTextNode(" "));spanNode=document.createElement('span');spanNode.innerHTML='&nbsp;';td2.appendChild(spanNode);if(this.numberEmailAddresses!=0||typeof(this.emailIsRequired)=="undefined"||!this.emailIsRequired)
+newContentOptOutFlag.setAttribute("type","checkbox");newContentOptOutFlag.setAttribute("name",this.id+"emailAddressOptOutFlag[]");newContentOptOutFlag.setAttribute("id",this.id+"emailAddressOptOutFlag"+this.numberEmailAddresses);newContentOptOutFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentOptOutFlag.setAttribute("enabled","true");newContentOptOutFlag.eaw=this;newContentOptOutFlag.setAttribute("tabindex",tabIndexCount);newContentOptOutFlag['onClick']=function(){this.eaw.toggleCheckbox(this)};newContentInvalidFlag.setAttribute("type","checkbox");newContentInvalidFlag.setAttribute("name",this.id+"emailAddressInvalidFlag[]");newContentInvalidFlag.setAttribute("id",this.id+"emailAddressInvalidFlag"+this.numberEmailAddresses);newContentInvalidFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentInvalidFlag.setAttribute("enabled","true");newContentInvalidFlag.eaw=this;newContentInvalidFlag.setAttribute("tabindex",tabIndexCount);newContentInvalidFlag['onClick']=function(){this.eaw.toggleCheckbox(this);};newContentVerifiedFlag.setAttribute("type","hidden");newContentVerifiedFlag.setAttribute("name",this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses);newContentVerifiedFlag.setAttribute("id",this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses);newContentVerifiedFlag.setAttribute("value","true");newContentVerifiedValue.setAttribute("type","hidden");newContentVerifiedValue.setAttribute("name",this.id+"emailAddressVerifiedValue"+this.numberEmailAddresses);newContentVerifiedValue.setAttribute("id",this.id+"emailAddressVerifiedValue"+this.numberEmailAddresses);newContentVerifiedValue.setAttribute("value",address);newContentVerifiedValue.setAttribute("tabindex",tabIndexCount);this.emailView=(this.emailView=='')?'EditView':this.emailView;addToValidateVerified(this.emailView,this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses,'bool',false,SUGAR.language.get('app_strings','LBL_VERIFY_EMAIL_ADDRESS'));tr.setAttribute("id",this.id+"emailAddressRow"+this.numberEmailAddresses);td1.setAttribute("nowrap","NOWRAP");td3.setAttribute("align","center");td4.setAttribute("align","center");td5.setAttribute("align","center");td6.setAttribute("align","center");td1.appendChild(newContent);td1.appendChild(document.createTextNode(" "));spanNode=document.createElement('span');spanNode.innerHTML='&nbsp;';td2.appendChild(spanNode);if(this.numberEmailAddresses!=0||typeof(this.emailIsRequired)=="undefined"||!this.emailIsRequired)
td2.appendChild(removeButton);td3.appendChild(newContentPrimaryFlag);td4.appendChild(newContentReplyToFlag);td5.appendChild(newContentOptOutFlag);td6.appendChild(newContentInvalidFlag);td7.appendChild(newContentVerifiedFlag);td8.appendChild(newContentVerifiedValue);tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);if(typeof(this.module)!='undefined'&&this.module=='Users'){tr.appendChild(td4);}else{tr.appendChild(td5);tr.appendChild(td6);}
tr.appendChild(td7);tr.appendChild(td8);tbody.appendChild(tr);insertInto.appendChild(tbody);parentObj.insertBefore(Dom.get('targetBody'),insertInto);if(primaryFlag=='1'||(this.numberEmailAddresses==0)){newContentPrimaryFlag.setAttribute("checked",'true');newContent.setAttribute("title",SUGAR.language.get('app_strings','LBL_EMAIL_PRIM_TITLE'));}
if(replyToFlag=='1'){newContentReplyToFlag.setAttribute("checked","true");}
if(replyToFlag=='1'){this.replyToFlagObject[newContentReplyToFlag.id]=true;}else{this.replyToFlagObject[newContentReplyToFlag.id]=false;}
if(optOutFlag=='1'){newContentOptOutFlag.setAttribute("checked",'true');newContent.setAttribute("title",SUGAR.language.get('app_strings','LBL_EMAIL_OPT_TITLE'));}
if(invalidFlag=='1'){newContentInvalidFlag.setAttribute("checked","true");newContent.setAttribute("title",SUGAR.language.get('app_strings','LBL_EMAIL_INV_TITLE'));}
newContent.eaw=this;newContent.onblur=function(e){this.eaw.retrieveEmailAddress(e)};newContent.onkeydown=function(e){this.eaw.handleKeyDown(e)};if(YAHOO.env.ua.ie>0){var emailcontainer=Dom.getAncestorByTagName(insertInto,'span');YAHOO.util.Event.addListener(newContent,"change",function(ev,el){SUGAR.util.callOnChangeListers(el);},emailcontainer);}
-this.EmailAddressValidation(this.emailView,this.id+'emailAddress'+this.numberEmailAddresses,this.emailIsRequired,SUGAR.language.get('app_strings','LBL_EMAIL_ADDRESS_BOOK_EMAIL_ADDR'));this.numberEmailAddresses++;this.addInProgress=false;},EmailAddressValidation:function(ev,fn,r,stR){YAHOO.util.Event.onContentReady(fn,function(){addToValidate(ev,fn,'email',r,stR);});},removeEmailAddress:function(index){removeFromValidate(this.emailView,this.id+'emailAddress'+index);var oNodeToRemove=Dom.get(this.id+'emailAddressRow'+index);var form=Dom.getAncestorByTagName(oNodeToRemove,"form");oNodeToRemove.parentNode.removeChild(oNodeToRemove);var removedIndex=parseInt(index);if(this.numberEmailAddresses!=removedIndex){for(var x=removedIndex+1;x<this.numberEmailAddresses;x++){Dom.get(this.id+'emailAddress'+x).setAttribute("name",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddress'+x).setAttribute("id",this.id+"emailAddress"+(x-1));if(Dom.get(this.id+'emailAddressInvalidFlag'+x)){Dom.get(this.id+'emailAddressInvalidFlag'+x).setAttribute("value",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddressInvalidFlag'+x).setAttribute("id",this.id+"emailAddressInvalidFlag"+(x-1));}
+this.EmailAddressValidation(this.emailView,this.id+'emailAddress'+this.numberEmailAddresses,this.emailIsRequired,SUGAR.language.get('app_strings','LBL_EMAIL_ADDRESS_BOOK_EMAIL_ADDR'));this.numberEmailAddresses++;this.addInProgress=false;},EmailAddressValidation:function(ev,fn,r,stR){YAHOO.util.Event.onContentReady(fn,function(){addToValidate(ev,fn,'email',r,stR);});},removeEmailAddress:function(index){removeFromValidate(this.emailView,this.id+'emailAddress'+index);var oNodeToRemove=$("#"+this.id+'emailAddressRow'+index);var form=oNodeToRemove.parents("form")[0];oNodeToRemove.find("input").each(function(index,node){$(node).remove();});oNodeToRemove.css("display","none");var removedIndex=parseInt(index);if(this.numberEmailAddresses!=removedIndex){for(var x=removedIndex+1;x<this.numberEmailAddresses;x++){Dom.get(this.id+'emailAddress'+x).setAttribute("name",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddress'+x).setAttribute("id",this.id+"emailAddress"+(x-1));if(Dom.get(this.id+'emailAddressInvalidFlag'+x)){Dom.get(this.id+'emailAddressInvalidFlag'+x).setAttribute("value",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddressInvalidFlag'+x).setAttribute("id",this.id+"emailAddressInvalidFlag"+(x-1));}
if(Dom.get(this.id+'emailAddressOptOutFlag'+x)){Dom.get(this.id+'emailAddressOptOutFlag'+x).setAttribute("value",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddressOptOutFlag'+x).setAttribute("id",this.id+"emailAddressOptOutFlag"+(x-1));}
if(Dom.get(this.id+'emailAddressPrimaryFlag'+x)){Dom.get(this.id+'emailAddressPrimaryFlag'+x).setAttribute("id",this.id+"emailAddressPrimaryFlag"+(x-1));}
Dom.get(this.id+'emailAddressVerifiedValue'+x).setAttribute("id",this.id+"emailAddressVerifiedValue"+(x-1));Dom.get(this.id+'emailAddressVerifiedFlag'+x).setAttribute("id",this.id+"emailAddressVerifiedFlag"+(x-1));var rButton=Dom.get(this.id+'removeButton'+x);rButton.setAttribute("name",(x-1));rButton.setAttribute("id",this.id+"removeButton"+(x-1));Dom.get(this.id+'emailAddressRow'+x).setAttribute("id",this.id+'emailAddressRow'+(x-1));}}
View
120 files.md5
@@ -1,5 +1,5 @@
<?php
-// created: 2012-04-25 18:31:57
+// created: 2012-05-09 12:18:57
$md5_string = array (
'./LICENSE.txt' => 'd3f150e4a5bed444763ebe8a81742a95',
'./.htaccess' => 'd41d8cd98f00b204e9800998ecf8427e',
@@ -479,7 +479,7 @@ $md5_string = array (
'./include/SugarCharts/Jit/js/sugarCharts.js' => '5206ef68ccb430a9749c6d55f6e68f18',
'./include/SugarCharts/Jit/js/mySugarCharts.js' => '6b3dd85fe7c6d5714b6d12c63e536982',
'./include/SugarCharts/Jit/js/Jit/jit.js' => 'a9f9f3efa0c6d7af942edbd3cddf9833',
- './include/SugarCharts/Jit/tpls/chart.tpl' => '5ba761cf08a1f352aca76e96d8d42967',
+ './include/SugarCharts/Jit/tpls/chart.tpl' => 'c2b9384005a30c63fb25e594a24f9271',
'./include/SugarCharts/Jit/tpls/DashletGenericChartScript.tpl' => '2c4808cf07078a03c669b52ab5f6997a',
'./include/SugarCharts/Jit/JitReports.php' => '2ea46bce40c7b654e4d9b9108278ecfd',
'./include/SugarCharts/Jit/FlashCanvas/flashcanvas.js' => 'c2300996439f4a33c849f40afc5da8ae',
@@ -504,7 +504,7 @@ $md5_string = array (
'./include/utils/progress_bar_utils.php' => 'dd1681c9c3f418d66364f4565eb0e286',
'./include/utils/php_zip_utils.php' => '837fa2513561b0b259abbbbd4082cd7e',
'./include/utils/zip_utils.php' => 'f765a38da8ded7c908fa5319d175c836',
- './include/utils/mvc_utils.php' => '6f975b7f7489cb105295e33413158615',
+ './include/utils/mvc_utils.php' => 'ba480af9d0a9f728e7640b9d16c4426b',
'./include/utils/layout_utils.php' => '2a581d3954deea35b6fa3f88e9804e4f',
'./include/images/install_themes.jpg' => '01fe7a67fb311afe5e93e9819ca36b12',
'./include/images/seed_jim_id.gif' => 'ccdaf0d492f924e8af2611b374550abd',
@@ -601,7 +601,7 @@ $md5_string = array (
'./include/phpmailer/language/phpmailer.lang-br.php' => 'd294ef50bd7d57e70e866a7618528048',
'./include/phpmailer/class.phpmailer.php' => 'a78d163362a44ff475e9141c3c75ed99',
'./include/php-sql-parser.php' => '3abaa35d1b42c94523fc2e7ce5ae677c',
- './include/database/DBManager.php' => '1a3d70a2013e44f37a92fecf1e8eed3c',
+ './include/database/DBManager.php' => 'e95498b0592bddf9275c56b92ec48395',
'./include/database/MysqlHelper.php' => '6081c98891b401e3653bde7ec539b6d9',
'./include/database/DBHelper.php' => '74b36f164c288872a50d1f6132d4875e',
'./include/database/MysqlManager.php' => '8ced979bd27912b1b4956f4ba80f89f8',
@@ -611,7 +611,7 @@ $md5_string = array (
'./include/database/MssqlHelper.php' => '6b3a36ab4462e0f838c35e0e74e0f02b',
'./include/database/DBManagerFactory.php' => '021c6c562cd96f304544af0e336dc736',
'./include/database/SqlsrvManager.php' => '4a3d6c5e56ae8fe5fdb07ead522c324e',
- './include/database/MssqlManager.php' => 'b40e5769a669e1cf8adbd85cabb63049',
+ './include/database/MssqlManager.php' => '3cdf964c4f825bcbafe19f54cf3d966c',
'./include/timezone/timezones.php' => '15844342704f03ef8d40603abe9aa99b',
'./include/SugarSQLValidate.php' => 'eb288af9ccb9828370ef3999ad926619',
'./include/connectors/ConnectorFactory.php' => '33d27fc539bbd684cf7deb0cea6ed37d',
@@ -785,7 +785,7 @@ $md5_string = array (
'./include/javascript/sugar_yui_overrides.js' => '2044e4ff54670e82359c21cca12b2dd5',
'./include/javascript/cookie.js' => '88a6745e90f7c043394eca8b106068b2',
'./include/javascript/popup_parent_helper.js' => '592953cb14307a0ce288261d40c4f8a9',
- './include/javascript/sugar_3.js' => '2b9201b49f5031e396491417daaf52db',
+ './include/javascript/sugar_3.js' => '857f18b9b16c9001e09c2123b457fe4c',
'./include/javascript/jquery.js' => '819fb9d29c24f79d34343e9f182aaf24',
'./include/javascript/sugar_connection_event_listener.js' => '27234843e68e64fc9c399044619320be',
'./include/javascript/jsclass_async.js' => 'd725c16df9803e561437c4a2e13d1372',
@@ -811,7 +811,7 @@ $md5_string = array (
'./include/javascript/jquery/markitup/skins/simple/images/menu.png' => 'd74483b594d0694f0cab86967b8f9535',
'./include/javascript/jquery/markitup/templates/preview.css' => 'dfc4c5b56b115d52e7ca83dd848141e7',
'./include/javascript/jquery/markitup/templates/preview.html' => '50ca53cf759b1c88a3ed8b29e4b2c3ed',
- './include/javascript/jquery/markitup/jquery.markitup.js' => '3e0726bc3d1829105ff52bd06d91242d',
+ './include/javascript/jquery/markitup/jquery.markitup.js' => '60d248adc986c60386db84b4e62fd1ba',
'./include/javascript/jquery/jquery.hoverscroll.js' => '6f47c83c58cdddd2a704f967e2ec29d2',
'./include/javascript/jquery/jquery.elementReady.js' => 'ca3ff36ea735918a7425a47940d0e1c8',
'./include/javascript/jquery/jquery.js' => '219073097031d9c1a95a1291d66f3a10',
@@ -854,7 +854,7 @@ $md5_string = array (
'./include/javascript/jquery/jquery.showLoading.js' => '573787c855a3389081b878302f905df7',
'./include/javascript/sugarwidgets/SugarYUILoader.js' => 'c8198074c79a9df405d87800127c4e96',
'./include/javascript/sugarwidgets/SugarYUIWidgets.js' => '87d2799c07bc59a87f0cfc230158ed74',
- './include/javascript/javascript.php' => 'a2e0897741545fa87f6e5e086397bc82',
+ './include/javascript/javascript.php' => '302783deea1447541d58f199ed58e8a4',
'./include/javascript/getYUIComboFile.php' => '79212b9800ede659ec34081b99ad0517',
'./include/javascript/phpjs/get_html_translation_table.js' => '054b9c1274686f591c68909704b112fb',
'./include/javascript/phpjs/html_entity_decode.js' => '5ba6eed789f2a2f171e5b8fa5cef04c4',
@@ -2566,7 +2566,7 @@ $md5_string = array (
'./include/MVC/View/ViewFactory.php' => '56116e594364b8a34b3d8986e93fce1e',
'./include/MVC/View/SugarView.php' => '39cd63a2d10492b4786c52ccfc581cc9',
'./include/MVC/SugarModule.php' => '1d53f536613de51c996600e26c14ca97',
- './include/MVC/SugarApplication.php' => 'b86618ca3ee38e834d582b34d8f9628d',
+ './include/MVC/SugarApplication.php' => '0ab99c48aa7063737aa11b9e3038a820',
'./include/MVC/Controller/file_access_control_map.php' => '6bf1388c2830450cb92d8b9e374a04d5',
'./include/MVC/Controller/entry_point_registry.php' => '5b7aef0d506fb3cf9d635e49f714d7ed',
'./include/MVC/Controller/SugarController.php' => 'bdea5e50de511437f75f0f4f093afeb3',
@@ -2576,7 +2576,7 @@ $md5_string = array (
'./include/MVC/preDispatch.php' => 'e22affc5e53060ce3fc9780c21b32289',
'./include/SearchForm/tpls/footer.tpl' => '3461531f4a52f4aecc61756098bb982f',
'./include/SearchForm/tpls/header.tpl' => '8b71afe9e844839dddf7cde148de2a9a',
- './include/SearchForm/tpls/SugarSpot.tpl' => 'cc926947bc5552040deb01a6961576a3',
+ './include/SearchForm/tpls/SugarSpot.tpl' => '6085b2f4406c9097be7ac951e6470e81',
'./include/SearchForm/tpls/SearchFormGenericAdvanced.tpl' => 'f8d8d9a835a80ce85bcd0b6b801ad7cf',
'./include/SearchForm/tpls/SearchFormGeneric.tpl' => '2e5f84f3de4d7e15d122e57253acfa91',
'./include/SearchForm/SugarSpot.php' => 'a899046092d8a1bdb1fd93352b209ab4',
@@ -2600,15 +2600,15 @@ $md5_string = array (
'./include/Pear/XML_HTMLSax3/HTMLSax3/Decorators.php' => '34a9a95566c891f013584073fbadaf7e',
'./include/Pear/XML_HTMLSax3/LICENSE' => 'a45bb1bbeed9e26b26c5763df1d3913d',
'./include/Pear/XML_HTMLSax3/HTMLSax3.php' => '11107d97b19feb13feb394cd858603f0',
- './include/ListView/ListViewSmarty.php' => '1fdc53c2ffa2d08d9e9c671fa45c8390',
- './include/ListView/ListViewData.php' => '8654d97722073be2651d310b62d4f88d',
+ './include/ListView/ListViewSmarty.php' => '533ed60d9946ad26872a0004e9519b9f',
+ './include/ListView/ListViewData.php' => '6a0b86ad1580c0a08fe5b9d5e48229a5',
'./include/ListView/ListViewGeneric.tpl' => '806bb3588292fad8800209dd9bac02d5',
- './include/ListView/ListView.php' => 'bd62019f86ba38b2b7fab82276e95179',
+ './include/ListView/ListView.php' => 'cb6d362bb9ae6fc1d58c211b067d31bd',
'./include/ListView/ListViewFacade.php' => 'e82b5372d43acd05f1dbe5855c40cdbd',
'./include/ListView/ListViewDCMenu.tpl' => 'e7f7ad82a50d2998a933c7e8c333c080',
'./include/ListView/ListViewXTPL.php' => '5fff1f22e74a373c216a5358e9be1aae',
'./include/ListView/ListViewPagination.tpl' => '4e872c4c80c16572a07094349132f31b',
- './include/ListView/ListViewDisplay.php' => 'dacd21362a205d4c5e00df1ced8c4463',
+ './include/ListView/ListViewDisplay.php' => 'e4a0b3efda595955a8e3e173ef60a579',
'./include/ListView/ListViewNoMassUpdate.tpl' => '979476d174c8fa58af325195f03a3b29',
'./include/vCard.php' => 'b9b49b4d676cbb05c00771e037687ef3',
'./include/upload_file.php' => 'df7b3b994bc7703e471b62a5ab7a7598',
@@ -2625,7 +2625,7 @@ $md5_string = array (
'./include/pclzip/readme.txt' => '2265cad9ccb84cfcd4093ce26b22dc97',
'./include/pclzip/gnu-lgpl.txt' => '7fbc338309ac38fefcd64b04bb903e34',
'./include/pclzip/pclzip.lib.php' => 'f42cfbdfccc2dcd85df39638ae2d141c',
- './include/SugarEmailAddress/SugarEmailAddress.js' => 'd073ab2b4e8294ab70fd36dbc375a126',
+ './include/SugarEmailAddress/SugarEmailAddress.js' => 'b91373772e9f4c269336890689bc32a5',
'./include/SugarEmailAddress/SugarEmailAddress.php' => '24768ff72c278c7d2f30b98d1bfcbdf5',
'./include/SugarEmailAddress/templates/forDuplicatesView.tpl' => '7606911a788f6fa0f4aca806679e4098',
'./include/SugarEmailAddress/templates/forDetailView.tpl' => '8a913b1d6cbaf35ff7237c8c6022af9c',
@@ -2857,7 +2857,7 @@ $md5_string = array (
'./examples/SoapTestPortal2.php' => '1bdcaf7c930be3d430aeb1b20f090ad3',
'./examples/SoapTestPortal.php' => 'c74c4add1729e57d3e7914804ecfd174',
'./examples/ExampleLeadCapture.php' => '8699c993d31fba5bc3eea05f04ade858',
- './maintenance.php' => 'b8daab99423f4dc5c31e814694715aeb',
+ './maintenance.php' => '5b0f22ca875a1d2ee6018070cbf0848b',
'./robots.txt' => 'f71d20196d4caf35b6a670db8c70b03d',
'./vcal_server.php' => 'd3299c6c47e3a66bea11026bcfbf0ecf',
'./dictionary.php' => '19245b9374ee0cfc7048c87c7548652e',
@@ -3303,7 +3303,7 @@ $md5_string = array (
'./service/core/SugarRestServiceImpl.php' => 'd1a216a0907104a536ac894155f42136',
'./service/core/WSDL.tpl' => 'd41d8cd98f00b204e9800998ecf8427e',
'./service/core/SugarWebServiceImpl.php' => 'd4e1e3d90da1e958d0223541d3210746',
- './service/core/SoapHelperWebService.php' => '59337d65ffeb6f9da299d99b18f54485',
+ './service/core/SoapHelperWebService.php' => 'a132b424e253b1fe8c049545cc772465',
'./service/core/SugarWebService.php' => '57d68047756a2241b46ddc7bbc7db539',
'./service/core/PHP5Soap.php' => 'bec53408906a366dd024abff4ef6d5f2',
'./service/core/REST/SugarRest.php' => 'fe298c96bf12d4a37b4d1bc76609fb1b',
@@ -3342,7 +3342,7 @@ $md5_string = array (
'./service/v4/registry.php' => 'eb5f47fb4e4a536aad58984a433b41d5',
'./service/v4/rest.php' => '0721bd365d3151c72db6f95ce4b7e186',
'./service/v4/SugarWebServiceImplv4.php' => 'e6ff7126a7de746241ad61d0a44e1d9a',
- './service/v4/SugarWebServiceUtilv4.php' => '65508292f5c5e829e3b9619218648146',
+ './service/v4/SugarWebServiceUtilv4.php' => 'd7751060998c6e708a794e339a2152e9',
'./custom/index.html' => '601a18f179c2ac55779c9bac46942525',
'./modules/EmailTemplates/EmailTemplate.js' => 'c8ab748acfbda3ad0c5d8f6aa17f267b',
'./modules/EmailTemplates/EmailTemplate.php' => '95f6cdf408b0032d4dee1b8e2a11e73b',
@@ -3493,7 +3493,7 @@ $md5_string = array (
'./modules/Documents/GetLatestRevision.php' => '4810e123a8d2793523ba6010bcf3a55f',
'./modules/Documents/tpls/view.extdoc.tpl' => '1ca19fa9546ede05285d2f84a7dad8b1',
'./modules/Documents/Menu.php' => '380b1812ad68a9b70f6940ee3ffb3590',
- './modules/Documents/vardefs.php' => '32902ea7c126ba4c6d57dcba43c64900',
+ './modules/Documents/vardefs.php' => '1dbee77a59d3edfd6dd2f4a085cc0c8b',
'./modules/Documents/DocumentExternalApiDropDown.php' => 'd4a205ecc9c70686ba90822eede2e54a',
'./modules/Documents/views/view.edit.php' => '51ffc2415e3a6d4f3f3fd8f310451256',
'./modules/Documents/views/view.extdoc.php' => '4952ce7d1ad95f8544ab63eba854eec0',
@@ -3506,7 +3506,7 @@ $md5_string = array (
'./modules/Documents/metadata/quickcreatedefs.php' => '05b82e7da22c28c818fc2523a66263ce',
'./modules/Documents/metadata/editviewdefs.php' => '77320823297fcada95e446f1cd64d81e',
'./modules/Documents/metadata/SearchFields.php' => '608a6c85b7ddbef2a920b1a1ea1fec29',
- './modules/Documents/metadata/subpanels/ForContractType.php' => 'd80153bab42d859a732d57cd9e3d611f',
+ './modules/Documents/metadata/subpanels/ForContractType.php' => 'feeaf252241c5250193c3253b05ed029',
'./modules/Documents/metadata/subpanels/default.php' => '7e26119a66c3d78871cbfe8e8ada5599',
'./modules/Documents/metadata/listviewdefs.php' => '1568c1a339cd9ec2cb21bc31a41b2bed',
'./modules/Documents/metadata/studio.php' => '5023f1d2894dfcb6323d8e2d53ba397d',
@@ -3523,7 +3523,7 @@ $md5_string = array (
'./modules/Documents/DocumentSoap.php' => 'c7284b775de7124771ac025ed49de307',
'./modules/DynamicFields/Save.php' => 'cda85056a5ed28f6b5d228731bf70a09',
'./modules/DynamicFields/vardefs.php' => 'e459bfc0696a2101e786c09387e55f6a',
- './modules/DynamicFields/DynamicField.php' => '225277b981858d8f44e621abb579e9ad',
+ './modules/DynamicFields/DynamicField.php' => 'bcb24298a61e98da862c3339a5ca028e',
'./modules/DynamicFields/FieldCases.php' => '14b8c94e02dc85b2bbecf93709bce933',
'./modules/DynamicFields/templates/Fields/TemplateRelatedTextField.php' => '5f5e0cbb4e4f7781176cfd2338267580',
'./modules/DynamicFields/templates/Fields/TemplateAddressCountry.php' => 'b6c42b51c77c9c260677a0c9a3990c5b',
@@ -3732,7 +3732,7 @@ $md5_string = array (
'./modules/Emails/ListViewGroupInbox.html' => '21b3d7186ac3c75eadc35bb1f51e8b35',
'./modules/Emails/templates/emailSettings.tpl' => '96836e1684d89041099b32b90e896d1b',
'./modules/Emails/templates/editContact.tpl' => '250594336e5ef27361dc6dfd952ed113',
- './modules/Emails/templates/emailDetailView.tpl' => '8eaa3a813c507ea79c0377f121af28ad',
+ './modules/Emails/templates/emailDetailView.tpl' => '575edfdb38361c83ef64d7d5a10078f2',
'./modules/Emails/templates/assignTo.tpl' => 'f2f69cd4d6721cb404134f07784839cc',
'./modules/Emails/templates/emailSettingsAccountDetails.tpl' => '34e4a499b7d9b7df8978573da562f9ff',
'./modules/Emails/templates/emailSettingsAccounts.tpl' => '66aab3238604906c491a3083456236b9',
@@ -3836,21 +3836,21 @@ $md5_string = array (
'./modules/Schedulers/_AddJobsHere.php' => '1f2f9a09fc574098bc384586589c9729',
'./modules/Schedulers/Save.php' => 'c226203aa66f5352e9f8369558ccfba0',
'./modules/Schedulers/Menu.php' => 'ec8fe31293309109bc89184d9e59d4d1',
- './modules/Schedulers/vardefs.php' => '23475eb0cab74db8d6100d07bffa20cb',
+ './modules/Schedulers/vardefs.php' => '1071f58fdca8c9a415b8208a77a53792',
'./modules/Schedulers/views/view.list.php' => 'd887dcc7a7415af59f54352e2d25e667',
'./modules/Schedulers/views/view.edit.php' => '36503ae7307d88ab93e6ff855070a9d3',
'./modules/Schedulers/views/view.detail.php' => '7f6141c765ac02024be3e9adf8125d29',
'./modules/Schedulers/EditView.php' => '17e7ea9a33c92765aafd7504f80d0e3e',
'./modules/Schedulers/field_arrays.php' => 'cc96b2df3fc8573b600f1595c1572a5b',
'./modules/Schedulers/SchedulerDaemon.php' => 'f750c573f651acf60b319275b980b803',
- './modules/Schedulers/Scheduler.php' => '971df55c05642801efa31d4d6e48cb2e',
+ './modules/Schedulers/Scheduler.php' => 'cba11a89db736a4a39fac4bbf56f2716',
'./modules/Schedulers/metadata/searchdefs.php' => 'a75affb2a436476c4b544f41ef5e5f3f',
'./modules/Schedulers/metadata/subpaneldefs.php' => '0c954d9ff9fa9cfeb0ee98437d49b9a0',
'./modules/Schedulers/metadata/editviewdefs.php' => 'b531d59a896f76d65c7239b4d34b616f',
'./modules/Schedulers/metadata/SearchFields.php' => 'a23d53517c4ce69612756244612a79d6',
'./modules/Schedulers/metadata/subpanels/default.php' => '2c95f01778c5bc38a7291bdb6f3cdf33',
'./modules/Schedulers/metadata/listviewdefs.php' => '82d75c31c116f31c3efd862671643a81',
- './modules/Schedulers/metadata/detailviewdefs.php' => 'b9c49107c84d388ebfd4409d67634302',
+ './modules/Schedulers/metadata/detailviewdefs.php' => 'be5fd6bc342e6a40cbdcda2bdf2b29e2',
'./modules/Schedulers/JobThread.php' => '372301a6c760a85b3d69ddce4f027a32',
'./modules/Schedulers/language/en_us.lang.php' => 'c743fe536205090bb1efbe67de987549',
'./modules/Schedulers/EditView.html' => 'a41e1080ad5e758cead6f4aef669292b',
@@ -3876,7 +3876,7 @@ $md5_string = array (
'./modules/EAPM/metadata/searchdefs.php' => '252e61c70aff8266724feb3e9c0ce6bc',
'./modules/EAPM/metadata/metafiles.php' => '22f0924cf0ae9348853b8bd689270644',
'./modules/EAPM/metadata/quickcreatedefs.php' => 'b657356c48f246d874850e30fb841d6a',
- './modules/EAPM/metadata/editviewdefs.php' => '0196abcb5863befc416a47edbb5eff41',
+ './modules/EAPM/metadata/editviewdefs.php' => '8bedf6e37869dbcefb1e3deb2e80fc1a',
'./modules/EAPM/metadata/SearchFields.php' => 'fb358b4f0fd1d6fe367491df914c4e2f',
'./modules/EAPM/metadata/popupdefs.php' => 'ced962e8ddf4de1e8d2928afee808209',
'./modules/EAPM/metadata/subpanels/default.php' => '6cf3316ae78c998417ce929be4771eaa',
@@ -3950,7 +3950,7 @@ $md5_string = array (
'./modules/ModuleBuilder/parsers/relationships/RelationshipFactory.php' => 'fbea97175032b7b4c661fedcf5c270e2',
'./modules/ModuleBuilder/parsers/relationships/ManyToManyRelationship.php' => '62656c236d3e96dda5960a5afd78bb9c',
'./modules/ModuleBuilder/parsers/relationships/UndeployedRelationships.php' => 'ab2a7e3f86bd46511a844eade9ae0f39',
- './modules/ModuleBuilder/parsers/relationships/AbstractRelationship.php' => '938b0226be3f26dc34ee4a23381a6408',
+ './modules/ModuleBuilder/parsers/relationships/AbstractRelationship.php' => 'd3ea4e88767b1c80daf672373c341524',
'./modules/ModuleBuilder/parsers/relationships/RelationshipsInterface.php' => 'f75349afd3df2d632e9426f039a8665a',
'./modules/ModuleBuilder/parsers/relationships/AbstractRelationships.php' => '3f9fe1c68eac3e2ddeebd1acf059e172',
'./modules/ModuleBuilder/parsers/relationships/ActivitiesRelationship.php' => '9403baf40f9b35578af9b68666662349',
@@ -4023,20 +4023,20 @@ $md5_string = array (
'./modules/ModuleBuilder/javascript/studiotabgroups.js' => '9122fbe637449b8419dcf54138796d61',
'./modules/ModuleBuilder/javascript/studio2ListDD.js' => '89470dcfe5c0f6db12a16eeefe3ed261',
'./modules/ModuleBuilder/javascript/studio2.js' => 'fd387f59c9ffe44be63fca80334739f6',
- './modules/ModuleBuilder/javascript/SimpleList.js' => '384c32d3940fd4fcd0a5b04c17bee5ff',
+ './modules/ModuleBuilder/javascript/SimpleList.js' => '071e10cf864af65353db06a06efa1173',
'./modules/ModuleBuilder/javascript/wizardTemplate.js' => '3d3ab9ff2f4bbf520c3d708c370919d9',
'./modules/ModuleBuilder/javascript/studio2PanelDD.js' => '5f88544d725e6f2f11fff83f65307043',
'./modules/ModuleBuilder/MB/header.php' => 'baaed55a6950279aa14ed24eb6007395',
'./modules/ModuleBuilder/MB/MBField.php' => '545003d5e4f70b3a80e360c27e287e6e',
- './modules/ModuleBuilder/MB/MBModule.php' => '0085956c81ed08d9e2618bcfae138ff0',
+ './modules/ModuleBuilder/MB/MBModule.php' => '7073494aca895aab8749312c0e0b1dd6',
'./modules/ModuleBuilder/MB/AjaxCompose.php' => '0cf04c16ff5531e9b354a21bb56fb17c',
'./modules/ModuleBuilder/MB/MBPackageTree.php' => '479f8be396033c768a3b82780d8420a9',
- './modules/ModuleBuilder/MB/MBPackage.php' => 'a455386430470c71e2616c3cb994c2aa',
+ './modules/ModuleBuilder/MB/MBPackage.php' => '8ac03a0316199829747b838aa595fab7',
'./modules/ModuleBuilder/MB/MBVardefs.php' => 'b20c90fac5d47104d918ec502b3781ae',
- './modules/ModuleBuilder/MB/MBLanguage.php' => '0babdff14adb1275d18e0ecdc03a1b98',
- './modules/ModuleBuilder/MB/ModuleBuilder.php' => '6a1162227672a5c59b20692faf770e2d',
+ './modules/ModuleBuilder/MB/MBLanguage.php' => '1d1a81b9394953038980af83a724792b',
+ './modules/ModuleBuilder/MB/ModuleBuilder.php' => 'ab6b03dfeb337023aba6a3f2ace024ef',
'./modules/ModuleBuilder/MB/MBRelationship.php' => '387ceae2d9fbaeb0b6c5a04f59e869d5',
- './modules/ModuleBuilder/language/en_us.lang.php' => 'e554a4a4626083ad0bd957865488fc84',
+ './modules/ModuleBuilder/language/en_us.lang.php' => '564265ea2ff0802a1ac262b6b4b2d89a',
'./modules/ModuleBuilder/Forms.php' => 'e0b1a511f6979cc7536df6a72dcf466d',
'./modules/BeanDictionary.php' => '233575feabf6c1890205aaeef299c689',
'./modules/ACL/Save.php' => '866f5017539a906c1df5010bc42e3829',
@@ -4260,7 +4260,7 @@ $md5_string = array (
'./modules/Users/tpls/EditViewGroup.tpl' => '216c9826dbe366a4658d1f45201a8ad4',
'./modules/Users/ChangePassword.php' => '2a6c396c3bb376eb1e0665d60f85ab5d',
'./modules/Users/Menu.php' => 'd57ecd83a83934875b98d855f9175a37',
- './modules/Users/vardefs.php' => '880823a9f1f6b0e07972c6f13d669210',
+ './modules/Users/vardefs.php' => '071168ad264ffb70d4180b3c6fee11f2',
'./modules/Users/PopupUsers.php' => '4014d4aec3ea2b4197dcddf8f0cb726d',
'./modules/Users/ListRoles.php' => '5aecfc211a0f4f9d08010a3f7ab4f334',
'./modules/Users/authentication/SugarAuthenticate/SugarAuthenticateUser.php' => 'd560e09d6f9611d7e27b33567adb2e51',
@@ -4291,7 +4291,7 @@ $md5_string = array (
'./modules/Users/views/view.detail.php' => 'ea79f6d76e0b9ac1650a018fca3f857a',
'./modules/Users/controller.php' => 'ab707e79b219d0f9a9302b7549cf9d8e',
'./modules/Users/SaveSignature.php' => 'cc2276e326ce4a58a4fce9b147302c4f',
- './modules/Users/User.php' => 'aba1e60b07fd6d620b7be3b8f726bcd9',
+ './modules/Users/User.php' => '04882b63dd164032b49c92be33b39588',
'./modules/Users/login.tpl' => '7655c5b489de7a779cd7191d2ede3fa2',
'./modules/Users/SaveTimezone.php' => '3a27e5b03cbb1a9501401521dd2c1168',
'./modules/Users/Login.php' => '7e1b037ae884636443058bf6e6ecb9ae',
@@ -4301,7 +4301,7 @@ $md5_string = array (
'./modules/Users/SetTimezone.php' => 'c44b79aaff575d0ca6250a1f1b7dcd84',
'./modules/Users/password_utils.php' => '81d971c14523bc6a3e494c5c0bf1933f',
'./modules/Users/SetTimezone.tpl' => '63de1550c8415a4a7f510846b0f1010a',
- './modules/Users/GeneratePassword.php' => 'daa7e2d2a230691ffa2d5d9b4d83c9f6',
+ './modules/Users/GeneratePassword.php' => '0f5a2788a241f57996ab81b6c1e20b99',
'./modules/Users/ChangeGroupTab.php' => '6e1a3d401d7fd5f53bb79478ea6ab905',
'./modules/Users/metadata/searchdefs.php' => '8da9385b7be582391c6cd0ee32ec302f',
'./modules/Users/metadata/subpaneldefs.php' => '46b92950b7489723bc30fc5be7b2e680',
@@ -4324,7 +4324,7 @@ $md5_string = array (
'./modules/Users/metadata/detailviewdefs.php' => '0d35380da7742becc69d9a8e287eede5',
'./modules/Users/UserSignature.php' => '410eac350e431f5f5e88ca59a01ad7d3',
'./modules/Users/Popup_picker.html' => '44ecf49fcfd43110437ff32d25736fa1',
- './modules/Users/Changenewpassword.php' => 'b409e317853158c7ee75161c98c11f70',
+ './modules/Users/Changenewpassword.php' => 'd957ddd60abddcc028f74079bc7e05ac',
'./modules/Users/language/en_us.lang.php' => '116dc2ad31c655e05a3e349287e3c66c',
'./modules/Users/Logout.php' => '9b9980898ec0a1d58eaaf8a00faa2e67',
'./modules/Users/Popup_Users_picker.html' => '72ca55f89e936ccf6c8b1f252ee54236',
@@ -4334,7 +4334,7 @@ $md5_string = array (
'./modules/Users/PopupSignature.php' => '0d985743e8edf9ac971a4429b5c2234a',
'./modules/MergeRecords/Merge.js' => '97010cd73430a547b52fd78bf43e39e8',
'./modules/MergeRecords/Menu.php' => '299299650e5eae06f5daf4e4a01c0bed',
- './modules/MergeRecords/Step3.php' => 'ae79cc18227fd92405161c9c950a746f',
+ './modules/MergeRecords/Step3.php' => 'e6dd5a46b27e3f0395674256b6665b32',
'./modules/MergeRecords/vardefs.php' => '166f473990ceeea637c83ad002a0285a',
'./modules/MergeRecords/Step1.php' => 'c5ff94f6d5678a90ad52bf951ba86521',
'./modules/MergeRecords/MergeRecord.php' => 'a1e14dd55abc1acba8057459cc4e420a',
@@ -4421,7 +4421,7 @@ $md5_string = array (
'./modules/UpgradeWizard/processing.gif' => 'd7c43fc19181ee59862601bfce100b41',
'./modules/UpgradeWizard/systemCheckJson.php' => '1b3ca3638039d16eab4dc010373effcd',
'./modules/UpgradeWizard/end.php' => '9462750b22a32ee19331bf633411a91b',
- './modules/UpgradeWizard/uw_utils.php' => '4f75c844c97fc2c816cbec586709dfb0',
+ './modules/UpgradeWizard/uw_utils.php' => 'c3c1883359e254cde8d66673ec5e0d3e',
'./modules/UpgradeWizard/preflightJson.php' => 'f9430751b95094f6d831f98fbaed9d80',
'./modules/UpgradeWizard/upgradeTimeCounter.php' => '13650e724da4e4fe127bae4a8073565c',
'./modules/UpgradeWizard/uw_files.php' => 'a874d9aca1246f5125cb8007e9a9364a',
@@ -4435,11 +4435,11 @@ $md5_string = array (
'./modules/UpgradeWizard/upgradeMetaHelper.php' => 'e8ec7f254fdb515c8e519d4535c3954d',
'./modules/UpgradeWizard/cancel.php' => '97d22fbe214ea672250b63389101320f',
'./modules/UpgradeWizard/index.php' => '2e05260dc2035a5b5ea0bc24154cd434',
- './modules/UpgradeWizard/language/en_us.lang.php' => '9608c6cbd9d8a75e7530ca23cab3289a',
+ './modules/UpgradeWizard/language/en_us.lang.php' => '27090fef239fbfa1054bcd9781d3cb4a',
'./modules/UpgradeWizard/uw_main.tpl' => '9151371cd86f8d5781f3de7586f89437',
'./modules/UpgradeWizard/silentUpgrade.php' => '218efc6cf75900269e3cb4b5b0b55c0c',
- './modules/UpgradeWizard/silentUpgrade_step1.php' => '38a1b8ca6a603eac6e767fadb6f8a477',
- './modules/UpgradeWizard/systemCheck.php' => '5ce457069443b63a2c5c969363a8e15b',
+ './modules/UpgradeWizard/silentUpgrade_step1.php' => '6f4ad116d0e9a2329afb456cf2da25da',
+ './modules/UpgradeWizard/systemCheck.php' => '39259bbb1c62802fc9b78cd68f97bd3b',
'./modules/CampaignLog/Menu.php' => 'b76d9693b31806b29d1c9d2ac554c4d3',
'./modules/CampaignLog/vardefs.php' => 'e26bc89fca448b9ee5c9fe4e760caa94',
'./modules/CampaignLog/metadata/subpanels/ForTargets.php' => 'af2f4042b8d577709d6a1553854044ca',
@@ -4455,7 +4455,7 @@ $md5_string = array (
'./modules/UserPreferences/UserPreference.php' => '17db32c275129ffaf0253f1e72d79ab7',
'./modules/Calls/CallHelper.php' => '0a3e16eb98321a42cd2b078b094f1ad8',
'./modules/Calls/Save.php' => '89bcb06dff3026f3627692ee1616d86a',
- './modules/Calls/tpls/footer.tpl' => 'b5981022a00a24ffc06e27f0ebad65ed',
+ './modules/Calls/tpls/footer.tpl' => '7c4a89f076f85e253dcfa064d1a86ae3',
'./modules/Calls/tpls/QuickCreate.tpl' => '83609a9e601a5599dc3f3d2674665941',
'./modules/Calls/Menu.php' => '858bb3073b45d382034626a6ae3e13dd',
'./modules/Calls/vardefs.php' => 'ac2980875114f34a8d087846144549cc',
@@ -4468,7 +4468,7 @@ $md5_string = array (
'./modules/Calls/metadata/searchdefs.php' => '892464b109427176fc0dc9ca870ae1e4',
'./modules/Calls/metadata/subpaneldefs.php' => '74cfe6de17819f40cc6aca39a688a4bd',
'./modules/Calls/metadata/quickcreatedefs.php' => 'b9a18b440a38cffd04461985c688cbbd',
- './modules/Calls/metadata/editviewdefs.php' => '5175993c2c9d21c3bbcef25fb7d06684',
+ './modules/Calls/metadata/editviewdefs.php' => '6c787c7222f694f7fe39dbc834ca7304',
'./modules/Calls/metadata/SearchFields.php' => '478819054d7ea0c931e4601ccbfd62b4',
'./modules/Calls/metadata/subpanels/ForHistory.php' => 'e4e71584844b27a4602a5544add48179',
'./modules/Calls/metadata/subpanels/ForActivities.php' => '26342575d98c545e0dc4dc4fc545f1c0',
@@ -4480,7 +4480,7 @@ $md5_string = array (
'./modules/Calls/Dashlets/MyCallsDashlet/MyCallsDashlet.data.php' => '879e5027ef79b3bf23f9c09609188e29',
'./modules/Calls/Dashlets/MyCallsDashlet/MyCallsDashlet.meta.php' => '81158ed6fa50d810929b4ff429657161',
'./modules/Calls/Dashlets/MyCallsDashlet/MyCallsDashlet.php' => '6bf0c16b793ffcadcf14333530dafe83',
- './modules/Calls/language/en_us.lang.php' => '5e340a9f89ac539521af13026a06c493',
+ './modules/Calls/language/en_us.lang.php' => '8569bff2994c480e95a5b07c3dd07ead',
'./modules/Calls/SubPanelViewInvitees.html' => '4e7eeaa3d0ea3807ce8632669df1e176',
'./modules/ACLActions/ACLAction.php' => 'b0c570924b9da391507879c3d4653ee9',
'./modules/ACLActions/Menu.php' => '8e2a919d4a5ef7be81da1d595c040756',
@@ -4782,7 +4782,7 @@ $md5_string = array (
'./modules/SchedulersJobs/field_arrays.php' => 'a60602bff510c911ba742833413eba93',
'./modules/SchedulersJobs/metadata/subpanels/default.php' => 'c3629eb7760c975cdb22ea22cbe16a9c',
'./modules/SchedulersJobs/language/en_us.lang.php' => 'b0d407e5774510304e1b0ea6c794e25c',
- './modules/SchedulersJobs/SchedulersJob.php' => 'e0120c17703da89fe9e71649b1c3300e',
+ './modules/SchedulersJobs/SchedulersJob.php' => 'c9a7e0499326ffeb7a81556ccb0783f7',
'./modules/Contacts/Contact.js' => '9f9de844775302199af4542ed5928a30',
'./modules/Contacts/ContactOpportunityRelationshipEdit.php' => '989748fbb9350215e6fc966a50b2523d',
'./modules/Contacts/Email_picker.html' => 'ffc5a233b91fe04b5c27e1e4d07487a7',
@@ -4966,7 +4966,7 @@ $md5_string = array (
'./modules/Meetings/tpls/extMeetingNoStart.tpl' => '4f0e0734534e99f878aa68196f46678f',
'./modules/Meetings/tpls/reminders.tpl' => '9d18ebe8e3a253e5643ecc5384367c2f',
'./modules/Meetings/Menu.php' => '63348eb6a3845e5d48389fe80ed6bfff',
- './modules/Meetings/vardefs.php' => '52c0e0731bf79c61aee33e60411b26b4',
+ './modules/Meetings/vardefs.php' => '81f816ee7a42038336581f94415ef4b1',
'./modules/Meetings/JoinExternalMeeting.php' => 'b71a1a110ff5483fc45d49859d1a5ed4',
'./modules/Meetings/Meeting.php' => 'f3fdf06d524374a265bf0ecc219c9f31',
'./modules/Meetings/views/view.listbytype.php' => '61e0b1d6c77c420c061cc4edccc30b8e',
@@ -4990,7 +4990,7 @@ $md5_string = array (
'./modules/Meetings/Dashlets/MyMeetingsDashlet/MyMeetingsDashlet.meta.php' => '1f17c035ab5229249ccb4dbbb51a1d39',
'./modules/Meetings/Dashlets/MyMeetingsDashlet/MyMeetingsDashlet.php' => '7823935ea41c4e7139c51012a2a22741',
'./modules/Meetings/MeetingsQuickCreate.php' => '5e67b447ae39ad80afe5588a4a293388',
- './modules/Meetings/language/en_us.lang.php' => '5518d5b55d0c750cfae71e70c0021086',
+ './modules/Meetings/language/en_us.lang.php' => '0500950e96876d6a44b7183ff950648d',
'./modules/Meetings/SubPanelViewInvitees.html' => '7f9d1da5e8384457cadabf14412a88a5',
'./modules/Meetings/MeetingFormBase.php' => 'b5d63f8d12bcb4753aa2de28ecd74236',
'./modules/Administration/RepairIndex.php' => '31d55e4ce8069277191685e503ade848',
@@ -5029,7 +5029,7 @@ $md5_string = array (
'./modules/Administration/views/view.languages.php' => 'eca8a961cbf9e45bb21127ee1db25768',
'./modules/Administration/views/view.repair.php' => '187ce3268bf6576687701d2dbe42dd57',
'./modules/Administration/views/view.backups.php' => '7f4ca98837f1b1c566e93d7a827d95d0',
- './modules/Administration/controller.php' => 'c056ee977fdf1008d2ed8a0b4328dc37',
+ './modules/Administration/controller.php' => 'e83cadf5313419dd7662b951e1bb2bac',
'./modules/Administration/Async.php' => '3a6cc7676af1b2c884eb7113cc8fd178',
'./modules/Administration/SupportPortal.php' => '0bd583e18376f7ec8f0a2f57b8b0d104',
'./modules/Administration/RebuildAudit.php' => '9fbc7f3a2e53c19c9baf32a0bd0b85c4',
@@ -5055,7 +5055,7 @@ $md5_string = array (
'./modules/Administration/updateTimezonePrefs.php' => '46aea97ac223ee9e40328b39696164b3',
'./modules/Administration/updater_utils.php' => '08244e362fd3ef9e0fb7cab766e97967',
'./modules/Administration/DiagnosticDownload.php' => '8b2a5ba14793dd92341f37f0713479bc',
- './modules/Administration/DisplayWarnings.php' => '0c3a930d94eae29bddfa0469b890b4b7',
+ './modules/Administration/DisplayWarnings.php' => '8f5a56a05a9877990ff6cad4ad5af866',
'./modules/Administration/RepairJSFile.php' => 'f8cf5338d5659ea27a2662d44150b7fd',
'./modules/Administration/metadata/adminpaneldefs.php' => '78bec11e31f060925773ca8d22e75c43',
'./modules/Administration/metadata/SearchFields.php' => '787123be8e7e907e9754da7bf36ead0a',
@@ -5070,7 +5070,7 @@ $md5_string = array (
'./modules/Administration/PasswordManager.php' => '11ef65dbd8f4ef09c813483507fff134',
'./modules/Administration/Locale.tpl' => 'bb9afeb5e9db4919bdcd1808cabf2999',
'./modules/Administration/RebuildExpressionPlugins.php' => 'a926f301737fb11ba1a71673eb51424c',
- './modules/Administration/language/en_us.lang.php' => '8941e023ede1bd994dc2b1aecff43d30',
+ './modules/Administration/language/en_us.lang.php' => '41d2bdc9a18bf7518126fc1f4e45737b',
'./modules/Administration/UpgradeHistory.php' => 'a9ec8a2612a5d3404e974d53de8b4311',
'./modules/Administration/upgrade_custom_relationships.php' => 'fe1239f73daa16e6a8b7f3170c8cad23',
'./modules/Administration/ImportCustomFieldStructure.php' => 'fd2baf8134f11375810c5c4daa52c889',
@@ -5173,7 +5173,7 @@ $md5_string = array (
'./modules/Home/about.js' => '03fa705aef3b3a4b5ab6ac20d2fed0c0',
'./modules/Home/Home.html' => 'db09f83e17d4b882ef673c2cd01751ec',
'./modules/Home/SubpanelEdits.php' => 'a7c382727fd45ea8e3f3be39846b7ada',
- './modules/Home/QuickSearch.php' => '527b3c4d20d2720cd2029925eb528556',
+ './modules/Home/QuickSearch.php' => '858a24650ffb6f432d28c006371293b6',
'./modules/Home/Home.tpl' => 'a2bd30c3b40d5df6b929a274ddff83ac',
'./modules/Home/Menu.php' => '9f95dba812226231c76b38da981f6513',
'./modules/Home/sitemap.tpl' => '3619e568a9ad07ab4b5e35dd3780b298',
@@ -5235,14 +5235,14 @@ $md5_string = array (
'./modules/Home/TrainingPortal.php' => '1ec4a300d6dfd51f80eb642eee05f0f0',
'./cache/include/javascript/sugar_grp_jsolait.js' => '316249d0657d1e8fbcd3b672a57526b0',
'./cache/include/javascript/sugar_grp_quickcomp.js' => '97ef0cdef727c31825ff2ced21dff3cc',
- './cache/include/javascript/sugar_grp_emails.js' => '56036cd9be159a1eab6cc852dcc76b21',
+ './cache/include/javascript/sugar_grp_emails.js' => 'e461a6bd9e7ccd3c0e60940153e47933',
'./cache/include/javascript/sugar_grp_yui2.js' => '53c8d4d026a0adc7ea775e6488245de5',
'./cache/include/javascript/sugar_grp_yui_widgets.css' => '17f5b268fda1a8a3e27b41ebefe4d408',
'./cache/include/javascript/sugar_grp_yui_widgets.js' => 'ce18f141981e67d209c23484b4ca1b35',
'./cache/include/javascript/sugar_grp1_yui.js' => '9c3853420e26cad638181691de71e991',
'./cache/include/javascript/sugar_field_grp.js' => 'e7a749c76598d005a66822240e4e3d15',
'./cache/include/javascript/sugar_grp1_jquery.js' => 'f85f62711971b5fc874969b53a72f3bd',
- './cache/include/javascript/sugar_grp1.js' => '10465023e27e4feeffb018628c15d97e',
+ './cache/include/javascript/sugar_grp1.js' => '8faa0be19d760b2ab870fa56b1184be6',
'./cache/layout/index.html' => '9cd784063d39b18d308932c28c385853',
'./cache/images/index.html' => '9cd784063d39b18d308932c28c385853',
'./cache/xml/index.html' => '9cd784063d39b18d308932c28c385853',
@@ -5313,7 +5313,7 @@ $md5_string = array (
'./metadata/prospect_lists_prospectsMetaData.php' => 'fe3dc7d813428ca0fa774884a88ef5c4',
'./metadata/inboundEmail_autoreplyMetaData.php' => '7c670a62c7142827bbdf675c8b4be221',
'./metadata/acl_roles_actionsMetaData.php' => 'a3446107943a271bf6e329a80deb06e8',
- './sugar_version.php' => '410d23d2c71f741e1292fa253692e3f5',
+ './sugar_version.php' => '3d1d4f30dcd8d463523b99110374f64e',
'./cron.php' => '96a6fd7893809132e902086e77dde30c',
'./log4php/LoggerManager.php' => 'fa34194306cd50c01b71d8d5060ee362',
'./TreeData.php' => '7040af43bf01c450f4e225ece5e3f30c',
@@ -5917,7 +5917,7 @@ $md5_string = array (
'./themes/default/css/print.css' => '91228fdf0a95726bfbb6f854b2ac3e01',
'./themes/default/css/wizard.css' => 'bca3558b4758b9127a5073782f625336',
'./themes/default/css/deprecated.css' => 'b5471d86d506bea8630df869fbfbe9cb',
- './themes/Sugar5/js/style.js' => '78dbd0d1b66f9ef26b3e4b0f06701e6e',
+ './themes/Sugar5/js/style.js' => '729f0fb1f3ce59288e4e61014293a7b9',
'./themes/Sugar5/tpls/_companyLogo.tpl' => 'aec162121df756deaeb8b2b24a877b65',
'./themes/Sugar5/tpls/footer.tpl' => 'fbb48d80817323aacb010b920bd5921d',
'./themes/Sugar5/tpls/header.tpl' => 'f4f2a382c900e9186faba11ce64803c7',
@@ -6527,7 +6527,7 @@ $md5_string = array (
'./jssource/src_files/install/oc_convert.js' => '50079e852265938b1412c86a4cb4a394',
'./jssource/src_files/install/siteConfig.js' => '6f032d615a1d1c2750c6cad6244f250c',
'./jssource/src_files/install/license.js' => 'ee018864e0696ceeabb682a3817fb7c1',
- './jssource/src_files/themes/Sugar5/js/style.js' => 'cc928b7c59647246be8dd705ccd437d0',
+ './jssource/src_files/themes/Sugar5/js/style.js' => '0b1dadc882afed3eb7c0071ee19aa36d',
'./jssource/src_files/themes/default/js/style.js' => 'fdb215ecd8c10f81670747912c750d98',
'./jssource/src_files/modules/Home/about.js' => '5df96a1f221dfb3ca25650abe3c24eff',
'./jssource/src_files/modules/Currencies/EditView.js' => '83b17318ef591148bbc75e2aebb5c8d5',
@@ -6565,7 +6565,7 @@ $md5_string = array (
'./jssource/src_files/modules/EmailTemplates/EmailTemplate.js' => '3ba07abfef8bbfbba604ed19ebd52fd0',
'./jssource/src_files/service/utils/SugarRest.js' => '25bb6ba045022c695e3b3582f4a00ce6',
'./jssource/src_files/include/MySugar/javascript/MySugar.js' => '270b71a9ce6b524095622d58e9e8b105',
- './jssource/src_files/include/SugarEmailAddress/SugarEmailAddress.js' => 'dbdc67c4b71a5c24bd8ef7efb12675b7',
+ './jssource/src_files/include/SugarEmailAddress/SugarEmailAddress.js' => '45cf765b2ff9dfe06a975df8464c615b',
'./jssource/src_files/include/javascript/ajaxUI.js' => '79a5a52b3e84e90b33d2238a312508a7',
'./jssource/src_files/include/javascript/calendar.js' => '8a64349697d88a99b897514e60afcb4d',
'./jssource/src_files/include/javascript/iscroll.js' => 'b6c232e3c54b2a1320b22c7ad920c842',
@@ -7342,7 +7342,7 @@ $md5_string = array (
'./jssource/src_files/include/javascript/sugar_yui_overrides.js' => 'ac6afa48c7c53dd7a52fc0e812c54d4f',
'./jssource/src_files/include/javascript/cookie.js' => 'c4e6168195f22c5fbb1780a0745bde24',
'./jssource/src_files/include/javascript/popup_parent_helper.js' => 'c546e26584026b47054eecbcba234410',
- './jssource/src_files/include/javascript/sugar_3.js' => 'bba7b51b71f2ac1854503460a4564e01',
+ './jssource/src_files/include/javascript/sugar_3.js' => '7c3a8e7cf4132d850a0fd4ad61820610',
'./jssource/src_files/include/javascript/jquery.js' => '219073097031d9c1a95a1291d66f3a10',
'./jssource/src_files/include/javascript/sugar_connection_event_listener.js' => 'e38a0e0155991cbc8fabaa59bcb1b705',
'./jssource/src_files/include/javascript/jsclass_async.js' => '95072f5177e01c78662f14596255402e',
@@ -7430,7 +7430,7 @@ $md5_string = array (
'./soap/SoapError.php' => 'dff0c6fc02f66fbb4f86a91691ee300e',
'./soap/SoapHelperFunctions.php' => '6c048484d622dabb8591c5ff02a6e420',
'./soap/SoapPortalHelper.php' => '26539662f745829c3ad798995ccb0969',
- './soap/SoapSugarUsers.php' => 'fd8d48d780e06c8fd91f536e1ced6686',
+ './soap/SoapSugarUsers.php' => '1a4302d16978eb5d392bde44103ee530',
'./soap/SoapStudio.php' => '0fd81758942a52940c119f3afa134fcd',
'./soap/SoapRelationshipHelper.php' => '03cfb58253ac766d90ddf57d38d36afe',
'./soap/SoapErrorDefinitions.php' => '0ba2c58cdbdaec479860537420e4cf30',
View
2 include/ListView/ListView.php
@@ -1680,7 +1680,7 @@ function process_dynamic_listview_header($source_module, $subpanel_def, $html_va
if($orderBy == $column_name || (isset($widget_args['sort_by']) && str_replace('.','_',$widget_args['sort_by']) == $orderBy))
{
$imgArrow = "_down";
- if($this->sort_order == 'desc') {
+ if($this->sort_order == 'asc') {
$imgArrow = "_up";
}
}
View
2 include/ListView/ListViewData.php
@@ -498,7 +498,7 @@ function getListViewData($seed, $where, $offset=-1, $limit = -1, $filter_fields=
{
$field_name = (is_array($basicSearchField) && isset($basicSearchField['name'])) ? $basicSearchField['name'] : $basicSearchField;
$field_name .= "_basic";
- if( isset($_REQUEST[$field_name]) && ( !is_array($basicSearchField) || !isset($basicSearchField['type']) || $basicSearchField['type'] == 'text') )
+ if( isset($_REQUEST[$field_name]) && ( !is_array($basicSearchField) || !isset($basicSearchField['type']) || $basicSearchField['type'] == 'text' || $basicSearchField['type'] == 'name') )
{
$queryString = htmlentities($_REQUEST[$field_name]);
break;
View
3 include/ListView/ListViewDisplay.php
@@ -437,7 +437,8 @@ protected function buildDeleteLink($loc = 'top')
function buildSelectedObjectsSpan($echo = true, $total=0) {
global $app_strings;
- $selectedObjectSpan = "<span style='display: none;' id='selectedRecordsTop'>{$app_strings['LBL_LISTVIEW_SELECTED_OBJECTS']}<input style='border: 0px; background: transparent; font-size: inherit; color: inherit' type='text' id='selectCountTop' readonly name='selectCount[]' value='{$total}' /></span>";
+ $displayStyle = $total > 0 ? "" : "display: none;";
+ $selectedObjectSpan = "<span style='$displayStyle' id='selectedRecordsTop'>{$app_strings['LBL_LISTVIEW_SELECTED_OBJECTS']}<input style='border: 0px; background: transparent; font-size: inherit; color: inherit' type='text' id='selectCountTop' readonly name='selectCount[]' value='{$total}' /></span>";
return $selectedObjectSpan;
}
View
4 include/ListView/ListViewSmarty.php
@@ -140,7 +140,7 @@ function process($file, $data, $htmlVar) {
// handle save checks and stuff
if($this->multiSelect)
{
- $this->ss->assign('selectedObjectsSpan', $this->buildSelectedObjectsSpan(true, $this->data['pageData']['offsets']['current']));
+ $this->ss->assign('selectedObjectsSpan', $this->buildSelectedObjectsSpan(true, (isset($_POST['mass'])) ? count($_POST['mass']): 0));
$this->ss->assign('multiSelectData', $this->getMultiSelectData());
} else {
$this->ss->assign('multiSelectData', '<textarea style="display: none" name="uid"></textarea>');
@@ -219,7 +219,7 @@ function display($end = true) {
$displayEmptyDataMessages = TRUE;
//TODO: Cleanup, better logic for which modules are exempt from the new messaging.
- $modulesExemptFromEmptyDataMessages = array('WorkFlow','ContractTypes', 'OAuthKeys');
+ $modulesExemptFromEmptyDataMessages = array('WorkFlow','ContractTypes', 'OAuthKeys', 'TimePeriods');
if( (isset($GLOBALS['moduleTabMap'][$currentModule]) && $GLOBALS['moduleTabMap'][$currentModule] == 'Administration')
|| isset($GLOBALS['adminOnlyList'][$currentModule]) || in_array($currentModule, $modulesExemptFromEmptyDataMessages) )
{
View
12 include/MVC/SugarApplication.php
@@ -691,7 +691,7 @@ public static function setCookie(
$_COOKIE[$name] = $value;
}
- protected $redirectVars = array('module', 'action', 'record', 'token', 'oauth_token');
+ protected $redirectVars = array('module', 'action', 'record', 'token', 'oauth_token', 'mobile');
/**
* Create string to attach to login URL with vars to preserve post-login
@@ -709,6 +709,9 @@ public function createLoginVars()
$ret["login_".$var] = $_REQUEST[$var];
}
}
+ if(isset($_REQUEST['mobile'])) {
+ $ret['mobile'] = $_REQUEST['mobile'];
+ }
if(empty($ret)) return '';
return "&".http_build_query($ret);
}
@@ -739,7 +742,14 @@ public function getLoginRedirect()
foreach($this->redirectVars as $var) {
if(!empty($_REQUEST['login_'.$var])) $vars[$var] = $_REQUEST['login_'.$var];
}
+ if(isset($_REQUEST['mobile'])) {
+ $vars['mobile'] = $_REQUEST['mobile'];
+ }
+ if(isset($_REQUEST['mobile']))
+ {
+ $vars['mobile'] = $_REQUEST['mobile'];
+ }
if(empty($vars)) {
return "index.php?module=Home&action=index";
} else {
View
2 include/SearchForm/tpls/SugarSpot.tpl
@@ -54,7 +54,6 @@
</div>
<ul>
{foreach from=$data key=id item=name}
- <li>
<div onmouseover="DCMenu.showQuickViewIcon('{$id}')" onmouseout="DCMenu.hideQuickViewIcon('{$id}')" class="gs_div" style="position: relative" >
<div id="gs_div_{$id}" style="position: absolute;left: 0" class="SpanQuickView">
<img id="gs_img_{$id}" class="QuickView" src="themes/default/images/Search.gif" alt="quick_view_{$id}" onclick="DCMenu.showQuickView('{$module}', '{$id}');return false;">
@@ -65,7 +64,6 @@
<a href="index.php?module={$module}&action=DetailView&record={$id}" class="gs_link">{$name}</a>
</div>
</div>
- </li>
{/foreach}
</ul>
<div class="clear"></div>
View
2 include/SugarCharts/Jit/tpls/chart.tpl
@@ -63,7 +63,7 @@
{if !isset($showchart)}
loadCustomChartForReports();
{else}
- if (document.getElementById('showHideChartButton').value != '{$showchart}')
+ if($('#showHideChartButton').attr('value') != '{$showchart}')
loadCustomChartForReports();
{/if}
{literal}
View
6 include/SugarEmailAddress/SugarEmailAddress.js
@@ -47,19 +47,19 @@ this.freezeEvent(e);}}},getEvent:function(event){return(event?event:window.event
return;this.addInProgress=true;if(!address)
address="";var insertInto=Dom.get(tableId);var parentObj=insertInto.parentNode;var newContent=document.createElement("input");var nav=new String(navigator.appVersion);var newContentPrimaryFlag=document.createElement("input");var newContentReplyToFlag=document.createElement("input");var newContentOptOutFlag=document.createElement("input");var newContentInvalidFlag=document.createElement("input");var newContentVerifiedFlag=document.createElement("input");var newContentVerifiedValue=document.createElement("input");var removeButton=document.createElement("button");var removeButtonImg=document.createElement('img');var tbody=document.createElement("tbody");var tr=document.createElement("tr");var td1=document.createElement("td");var td2=document.createElement("td");var td3=document.createElement("td");var td4=document.createElement("td");var td5=document.createElement("td");var td6=document.createElement("td");var td7=document.createElement("td");var td8=document.createElement("td");var tabIndexCount=0;if(typeof(SUGAR.TabFields)!='undefined'&&typeof(SUGAR.TabFields['email1'])!='undefined'){tabIndexCount=SUGAR.TabFields['email1'];}
newContent.setAttribute("type","text");newContent.setAttribute("name",this.id+"emailAddress"+this.numberEmailAddresses);newContent.setAttribute("id",this.id+"emailAddress"+this.numberEmailAddresses);newContent.setAttribute("tabindex",tabIndexCount);newContent.setAttribute("size","30");newContent.setAttribute("title",SUGAR.language.get('app_strings','LBL_EMAIL_TITLE'));if(address!=''){newContent.setAttribute("value",address);}
-removeButtonImg.setAttribute('src',"index.php?entryPoint=getImage&themeName="+SUGAR.themes.theme_name+"&imageName=id-ff-remove-nobg.png");removeButton.setAttribute("id",this.id+"removeButton"+this.numberEmailAddresses);removeButton.setAttribute("class","id-ff-remove");removeButton.setAttribute("name",this.numberEmailAddresses);removeButton.eaw=this;removeButton.setAttribute("tabindex",tabIndexCount);removeButton.onclick=function(){this.eaw.removeEmailAddress(this.name);};removeButton.appendChild(removeButtonImg);newContentPrimaryFlag.setAttribute("type","radio");newContentPrimaryFlag.setAttribute("name",this.id+"emailAddressPrimaryFlag");newContentPrimaryFlag.setAttribute("id",this.id+"emailAddressPrimaryFlag"+this.numberEmailAddresses);newContentPrimaryFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentPrimaryFlag.setAttribute("enabled","true");newContentPrimaryFlag.setAttribute("tabindex",tabIndexCount);newContentReplyToFlag.setAttribute("type","radio");newContentReplyToFlag.setAttribute("name",this.id+"emailAddressReplyToFlag");newContentReplyToFlag.setAttribute("id",this.id+"emailAddressReplyToFlag"+this.numberEmailAddresses);newContentReplyToFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentReplyToFlag.setAttribute("enabled","true");newContentReplyToFlag.setAttribute("tabindex",tabIndexCount);newContentReplyToFlag.eaw=this;newContentReplyToFlag['onclick']=function(){var form=document.forms[this.eaw.emailView];if(!form){form=document.forms['editContactForm'];}
+removeButtonImg.setAttribute('src',"index.php?entryPoint=getImage&themeName="+SUGAR.themes.theme_name+"&imageName=id-ff-remove-nobg.png");removeButton.setAttribute("id",this.id+"removeButton"+this.numberEmailAddresses);removeButton.setAttribute("class","id-ff-remove");removeButton.setAttribute("name",this.numberEmailAddresses);removeButton.eaw=this;removeButton.setAttribute("tabindex",tabIndexCount);removeButton.onclick=function(){this.eaw.removeEmailAddress(this.name);return false;};removeButton.appendChild(removeButtonImg);newContentPrimaryFlag.setAttribute("type","radio");newContentPrimaryFlag.setAttribute("name",this.id+"emailAddressPrimaryFlag");newContentPrimaryFlag.setAttribute("id",this.id+"emailAddressPrimaryFlag"+this.numberEmailAddresses);newContentPrimaryFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentPrimaryFlag.setAttribute("enabled","true");newContentPrimaryFlag.setAttribute("tabindex",tabIndexCount);newContentReplyToFlag.setAttribute("type","radio");newContentReplyToFlag.setAttribute("name",this.id+"emailAddressReplyToFlag");newContentReplyToFlag.setAttribute("id",this.id+"emailAddressReplyToFlag"+this.numberEmailAddresses);newContentReplyToFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentReplyToFlag.setAttribute("enabled","true");newContentReplyToFlag.setAttribute("tabindex",tabIndexCount);newContentReplyToFlag.eaw=this;newContentReplyToFlag['onclick']=function(){var form=document.forms[this.eaw.emailView];if(!form){form=document.forms['editContactForm'];}
var nav=new String(navigator.appVersion);if(nav.match(/MSIE/gim)){for(i=0;i<form.elements.length;i++){var id=new String(form.elements[i].id);if(id.match(/emailAddressReplyToFlag/gim)&&form.elements[i].type=='radio'&&id!=this.eaw.id){form.elements[i].checked=false;}}}
for(i=0;i<form.elements.length;i++){var id=new String(form.elements[i].id);if(id.match(/emailAddressReplyToFlag/gim)&&form.elements[i].type=='radio'&&id!=this.eaw.id){this.eaw.replyToFlagObject[this.eaw.id]=false;}}
if(this.eaw.replyToFlagObject[this.id]){this.eaw.replyToFlagObject[this.id]=false;this.checked=false;}else{this.eaw.replyToFlagObject[this.id]=true;this.checked=true;}}
-newContentOptOutFlag.setAttribute("type","checkbox");newContentOptOutFlag.setAttribute("name",this.id+"emailAddressOptOutFlag[]");newContentOptOutFlag.setAttribute("id",this.id+"emailAddressOptOutFlag"+this.numberEmailAddresses);newContentOptOutFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentOptOutFlag.setAttribute("enabled","true");newContentOptOutFlag.eaw=this;newContentOptOutFlag.setAttribute("tabindex",tabIndexCount);newContentOptOutFlag['onClick']=function(){this.eaw.toggleCheckbox(this)};newContentInvalidFlag.setAttribute("type","checkbox");newContentInvalidFlag.setAttribute("name",this.id+"emailAddressInvalidFlag[]");newContentInvalidFlag.setAttribute("id",this.id+"emailAddressInvalidFlag"+this.numberEmailAddresses);newContentInvalidFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentInvalidFlag.setAttribute("enabled","true");newContentInvalidFlag.eaw=this;newContentInvalidFlag.setAttribute("tabindex",tabIndexCount);newContentInvalidFlag['onClick']=function(){this.eaw.toggleCheckbox(this)};newContentVerifiedFlag.setAttribute("type","hidden");newContentVerifiedFlag.setAttribute("name",this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses);newContentVerifiedFlag.setAttribute("id",this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses);newContentVerifiedFlag.setAttribute("value","true");newContentVerifiedValue.setAttribute("type","hidden");newContentVerifiedValue.setAttribute("name",this.id+"emailAddressVerifiedValue"+this.numberEmailAddresses);newContentVerifiedValue.setAttribute("id",this.id+"emailAddressVerifiedValue"+this.numberEmailAddresses);newContentVerifiedValue.setAttribute("value",address);newContentVerifiedValue.setAttribute("tabindex",tabIndexCount);this.emailView=(this.emailView=='')?'EditView':this.emailView;addToValidateVerified(this.emailView,this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses,'bool',false,SUGAR.language.get('app_strings','LBL_VERIFY_EMAIL_ADDRESS'));tr.setAttribute("id",this.id+"emailAddressRow"+this.numberEmailAddresses);td1.setAttribute("nowrap","NOWRAP");td3.setAttribute("align","center");td4.setAttribute("align","center");td5.setAttribute("align","center");td6.setAttribute("align","center");td1.appendChild(newContent);td1.appendChild(document.createTextNode(" "));spanNode=document.createElement('span');spanNode.innerHTML='&nbsp;';td2.appendChild(spanNode);if(this.numberEmailAddresses!=0||typeof(this.emailIsRequired)=="undefined"||!this.emailIsRequired)
+newContentOptOutFlag.setAttribute("type","checkbox");newContentOptOutFlag.setAttribute("name",this.id+"emailAddressOptOutFlag[]");newContentOptOutFlag.setAttribute("id",this.id+"emailAddressOptOutFlag"+this.numberEmailAddresses);newContentOptOutFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentOptOutFlag.setAttribute("enabled","true");newContentOptOutFlag.eaw=this;newContentOptOutFlag.setAttribute("tabindex",tabIndexCount);newContentOptOutFlag['onClick']=function(){this.eaw.toggleCheckbox(this)};newContentInvalidFlag.setAttribute("type","checkbox");newContentInvalidFlag.setAttribute("name",this.id+"emailAddressInvalidFlag[]");newContentInvalidFlag.setAttribute("id",this.id+"emailAddressInvalidFlag"+this.numberEmailAddresses);newContentInvalidFlag.setAttribute("value",this.id+"emailAddress"+this.numberEmailAddresses);newContentInvalidFlag.setAttribute("enabled","true");newContentInvalidFlag.eaw=this;newContentInvalidFlag.setAttribute("tabindex",tabIndexCount);newContentInvalidFlag['onClick']=function(){this.eaw.toggleCheckbox(this);};newContentVerifiedFlag.setAttribute("type","hidden");newContentVerifiedFlag.setAttribute("name",this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses);newContentVerifiedFlag.setAttribute("id",this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses);newContentVerifiedFlag.setAttribute("value","true");newContentVerifiedValue.setAttribute("type","hidden");newContentVerifiedValue.setAttribute("name",this.id+"emailAddressVerifiedValue"+this.numberEmailAddresses);newContentVerifiedValue.setAttribute("id",this.id+"emailAddressVerifiedValue"+this.numberEmailAddresses);newContentVerifiedValue.setAttribute("value",address);newContentVerifiedValue.setAttribute("tabindex",tabIndexCount);this.emailView=(this.emailView=='')?'EditView':this.emailView;addToValidateVerified(this.emailView,this.id+"emailAddressVerifiedFlag"+this.numberEmailAddresses,'bool',false,SUGAR.language.get('app_strings','LBL_VERIFY_EMAIL_ADDRESS'));tr.setAttribute("id",this.id+"emailAddressRow"+this.numberEmailAddresses);td1.setAttribute("nowrap","NOWRAP");td3.setAttribute("align","center");td4.setAttribute("align","center");td5.setAttribute("align","center");td6.setAttribute("align","center");td1.appendChild(newContent);td1.appendChild(document.createTextNode(" "));spanNode=document.createElement('span');spanNode.innerHTML='&nbsp;';td2.appendChild(spanNode);if(this.numberEmailAddresses!=0||typeof(this.emailIsRequired)=="undefined"||!this.emailIsRequired)
td2.appendChild(removeButton);td3.appendChild(newContentPrimaryFlag);td4.appendChild(newContentReplyToFlag);td5.appendChild(newContentOptOutFlag);td6.appendChild(newContentInvalidFlag);td7.appendChild(newContentVerifiedFlag);td8.appendChild(newContentVerifiedValue);tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);if(typeof(this.module)!='undefined'&&this.module=='Users'){tr.appendChild(td4);}else{tr.appendChild(td5);tr.appendChild(td6);}
tr.appendChild(td7);tr.appendChild(td8);tbody.appendChild(tr);insertInto.appendChild(tbody);parentObj.insertBefore(Dom.get('targetBody'),insertInto);if(primaryFlag=='1'||(this.numberEmailAddresses==0)){newContentPrimaryFlag.setAttribute("checked",'true');newContent.setAttribute("title",SUGAR.language.get('app_strings','LBL_EMAIL_PRIM_TITLE'));}
if(replyToFlag=='1'){newContentReplyToFlag.setAttribute("checked","true");}
if(replyToFlag=='1'){this.replyToFlagObject[newContentReplyToFlag.id]=true;}else{this.replyToFlagObject[newContentReplyToFlag.id]=false;}
if(optOutFlag=='1'){newContentOptOutFlag.setAttribute("checked",'true');newContent.setAttribute("title",SUGAR.language.get('app_strings','LBL_EMAIL_OPT_TITLE'));}
if(invalidFlag=='1'){newContentInvalidFlag.setAttribute("checked","true");newContent.setAttribute("title",SUGAR.language.get('app_strings','LBL_EMAIL_INV_TITLE'));}
newContent.eaw=this;newContent.onblur=function(e){this.eaw.retrieveEmailAddress(e)};newContent.onkeydown=function(e){this.eaw.handleKeyDown(e)};if(YAHOO.env.ua.ie>0){var emailcontainer=Dom.getAncestorByTagName(insertInto,'span');YAHOO.util.Event.addListener(newContent,"change",function(ev,el){SUGAR.util.callOnChangeListers(el);},emailcontainer);}
-this.EmailAddressValidation(this.emailView,this.id+'emailAddress'+this.numberEmailAddresses,this.emailIsRequired,SUGAR.language.get('app_strings','LBL_EMAIL_ADDRESS_BOOK_EMAIL_ADDR'));this.numberEmailAddresses++;this.addInProgress=false;},EmailAddressValidation:function(ev,fn,r,stR){YAHOO.util.Event.onContentReady(fn,function(){addToValidate(ev,fn,'email',r,stR);});},removeEmailAddress:function(index){removeFromValidate(this.emailView,this.id+'emailAddress'+index);var oNodeToRemove=Dom.get(this.id+'emailAddressRow'+index);var form=Dom.getAncestorByTagName(oNodeToRemove,"form");oNodeToRemove.parentNode.removeChild(oNodeToRemove);var removedIndex=parseInt(index);if(this.numberEmailAddresses!=removedIndex){for(var x=removedIndex+1;x<this.numberEmailAddresses;x++){Dom.get(this.id+'emailAddress'+x).setAttribute("name",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddress'+x).setAttribute("id",this.id+"emailAddress"+(x-1));if(Dom.get(this.id+'emailAddressInvalidFlag'+x)){Dom.get(this.id+'emailAddressInvalidFlag'+x).setAttribute("value",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddressInvalidFlag'+x).setAttribute("id",this.id+"emailAddressInvalidFlag"+(x-1));}
+this.EmailAddressValidation(this.emailView,this.id+'emailAddress'+this.numberEmailAddresses,this.emailIsRequired,SUGAR.language.get('app_strings','LBL_EMAIL_ADDRESS_BOOK_EMAIL_ADDR'));this.numberEmailAddresses++;this.addInProgress=false;},EmailAddressValidation:function(ev,fn,r,stR){YAHOO.util.Event.onContentReady(fn,function(){addToValidate(ev,fn,'email',r,stR);});},removeEmailAddress:function(index){removeFromValidate(this.emailView,this.id+'emailAddress'+index);var oNodeToRemove=$("#"+this.id+'emailAddressRow'+index);var form=oNodeToRemove.parents("form")[0];oNodeToRemove.find("input").each(function(index,node){$(node).remove();});oNodeToRemove.css("display","none");var removedIndex=parseInt(index);if(this.numberEmailAddresses!=removedIndex){for(var x=removedIndex+1;x<this.numberEmailAddresses;x++){Dom.get(this.id+'emailAddress'+x).setAttribute("name",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddress'+x).setAttribute("id",this.id+"emailAddress"+(x-1));if(Dom.get(this.id+'emailAddressInvalidFlag'+x)){Dom.get(this.id+'emailAddressInvalidFlag'+x).setAttribute("value",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddressInvalidFlag'+x).setAttribute("id",this.id+"emailAddressInvalidFlag"+(x-1));}
if(Dom.get(this.id+'emailAddressOptOutFlag'+x)){Dom.get(this.id+'emailAddressOptOutFlag'+x).setAttribute("value",this.id+"emailAddress"+(x-1));Dom.get(this.id+'emailAddressOptOutFlag'+x).setAttribute("id",this.id+"emailAddressOptOutFlag"+(x-1));}
if(Dom.get(this.id+'emailAddressPrimaryFlag'+x)){Dom.get(this.id+'emailAddressPrimaryFlag'+x).setAttribute("id",this.id+"emailAddressPrimaryFlag"+(x-1));}
Dom.get(this.id+'emailAddressVerifiedValue'+x).setAttribute("id",this.id+"emailAddressVerifiedValue"+(x-1));Dom.get(this.id+'emailAddressVerifiedFlag'+x).setAttribute("id",this.id+"emailAddressVerifiedFlag"+(x-1));var rButton=Dom.get(this.id+'removeButton'+x);rButton.setAttribute("name",(x-1));rButton.setAttribute("id",this.id+"removeButton"+(x-1));Dom.get(this.id+'emailAddressRow'+x).setAttribute("id",this.id+'emailAddressRow'+(x-1));}}
View
5 include/database/DBManager.php
@@ -2449,12 +2449,11 @@ protected function oneColumnSQLRep($fieldDef, $ignoreRequired = false, $table =
}
}
+ $default = '';
if (isset($fieldDef['default']) && strlen($fieldDef['default']) > 0)
$default = " DEFAULT ".$this->quoted($fieldDef['default']);
- elseif (!isset($default) && $type == 'bool')
+ elseif (!isset($fieldDef['default']) && $type == 'bool')
$default = " DEFAULT 0 ";
- elseif (!isset($default))
- $default = '';
$auto_increment = '';
if(!empty($fieldDef['auto_increment']) && $fieldDef['auto_increment'])
View
2 include/database/MssqlManager.php
@@ -232,7 +232,7 @@ public function connect(array $configOptions = null, $dieOnError = false)
//mssql db maximum number of 5 times at the interval of .2 second. If can not connect
//it will throw an Unable to select database message.
- if(!@mssql_select_db($configOptions['db_name'], $this->database)){
+ if(!empty($configOptions['db_name']) && !@mssql_select_db($configOptions['db_name'], $this->database)){
$connected = false;
for($i=0;$i<5;$i++){
usleep(200000);
View
4 include/javascript/javascript.php
@@ -261,6 +261,10 @@ function addAllFields($prefix,$skip_fields=null, $translate = false){
}
}
+ function addActionMenu() {
+ $this->script .= "$(document).ready(SUGAR.themes.actionMenu);";
+ }
+
function getScript($showScriptTag = true, $clearValidateFields = true){
$tempScript = $this->script;
$this->script = "";
View
54 include/javascript/jquery/markitup/jquery.markitup.js
@@ -24,9 +24,14 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// ----------------------------------------------------------------------------
+/*
+ Modified on 4-26-12 by SugarCRM
+ get and insert functions modifed for better IE8 compatibility.
+ Various global varaible cleanups
+ */
(function($) {
$.fn.markItUp = function(settings, extraSettings) {
- var options, ctrlKey, shiftKey, altKey;
+ var options, ctrlKey, shiftKey, altKey, selection, caretPosition;
ctrlKey = shiftKey = altKey = false;
options = { id: '',
@@ -53,7 +58,7 @@
// compute markItUp! path
if (!options.root) {
$('script').each(function(a, tag) {
- miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);
+ var miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);
if (miuScript !== null) {
options.root = miuScript[1];
}
@@ -107,7 +112,7 @@
// add the resize handle after textarea
if (options.resizeHandle === true && $.browser.safari !== true) {
- resizeHandle = $('<div class="markItUpResizeHandle"></div>')
+ var resizeHandle = $('<div class="markItUpResizeHandle"></div>')
.insertAfter($$)
.bind("mousedown", function(e) {
var h = $$.height(), y = e.clientY, mouseMove, mouseUp;
@@ -148,7 +153,7 @@
var ul = $('<ul></ul>'), i = 0;
$('li:hover > ul', ul).css('display', 'block');
$.each(markupSet, function() {
- var button = this, t = '', title, li, j;
+ var button = this, t = '', title, li, j, key;
title = (button.key) ? (button.name||'')+' [Ctrl+'+button.key+']' : (button.name||'');
key = (button.key) ? 'accesskey="'+button.key+'"' : '';
if (button.separator) {
@@ -164,7 +169,7 @@
}).click(function() {
return false;
}).bind("focusin", function(){
- $$.focus();
+ $$.focus();
}).mouseup(function() {
if (button.call) {
eval(button.call)();
@@ -234,6 +239,7 @@
// build block to insert
function build(string) {
+ var block, line;
var openWith = prepare(clicked.openWith);
var placeHolder = prepare(clicked.placeHolder);
var replaceWith = prepare(clicked.replaceWith);
@@ -276,7 +282,7 @@
// define markup to insert
function markup(button) {
- var len, j, n, i;
+ var len, j, n, i, lines, string, start;
hash = clicked = button;
get();
$.extend(hash, { line:"",
@@ -381,16 +387,13 @@
// add markup
function insert(block) {
- if (document.selection) {
- var newSelection = document.selection.createRange();
- newSelection.text = block;
- } else {
- textarea.value = textarea.value.substring(0, caretPosition) + block + textarea.value.substring(caretPosition + selection.length, textarea.value.length);
- }
+ textarea.value = textarea.value.substring(0, caretPosition) + block
+ + textarea.value.substring(caretPosition + selection.length, textarea.value.length);
}
// set a selection
function set(start, len) {
+ var range;
if (textarea.createTextRange){
// quick fix to make it work on Opera 9.5
if ($.browser.opera && $.browser.version >= 9.5 && len == 0) {
@@ -416,12 +419,27 @@
if (document.selection) {
selection = document.selection.createRange().text;
if ($.browser.msie) { // ie
- var range = document.selection.createRange(), rangeCopy = range.duplicate();
- rangeCopy.moveToElementText(textarea);
- caretPosition = -1;
- while(rangeCopy.inRange(range)) {
- rangeCopy.moveStart('character');
- caretPosition ++;
+ var range = document.selection.createRange(),
+ rangeCopy = range.duplicate();
+ //If nothing is selected, we have to use a different technique to find the caret position
+ if (document.selection.type =="None")
+ {
+ var sel = range;
+ range = textarea.createTextRange();
+ rangeCopy = range.duplicate();
+ range.moveToBookmark(sel.getBookmark());
+ rangeCopy.setEndPoint("EndToStart", range);
+ if (rangeCopy.parentElement() == textarea)
+ caretPosition = rangeCopy.text.length;
+ }
+ else {
+ rangeCopy.moveToElementText(textarea);
+ caretPosition = -1;
+ var inrange = false;
+ while(rangeCopy.inRange(range, inrange)) {
+ rangeCopy.moveStart('character');
+ caretPosition ++;
+ }
}
} else { // opera
caretPosition = textarea.selectionStart;
View
18 include/javascript/sugar_3.js
@@ -386,18 +386,21 @@ sugarListView.prototype.check_item=function(cb,form){if(cb.checked){sugarListVie
sugarListView.prototype.toggleSelected();}
sugarListView.prototype.toggleSelected=function(){var numSelected=sugarListView.get_num_selected();var selectedRecords=document.getElementById("selectedRecordsTop");var selectActions=document.getElementById("selectActions");var selectActionsDisabled=document.getElementById("selectActionsDisabled");if(numSelected>0){$(selectedRecords).removeAttr("style").addClass("show");$(".selectActionsDisabled").hide();jQuery('ul[name=selectActions]').each(function(){jQuery(this).removeAttr("style").addClass("show");});}else{$(selectedRecords).hide();$(".selectActionsDisabled").removeAttr("style").addClass("show");jQuery('ul[name=selectActions]').each(function(){jQuery(this).hide();});}}
sugarListView.prototype.updateUid=function(cb,form){if(form.name=='MassUpdate'&&form.uid&&form.uid.value&&cb.value&&form.uid.value.indexOf(cb.value)!=-1){if(form.uid.value.indexOf(','+cb.value)!=-1){form.uid.value=form.uid.value.replace(','+cb.value,'');}else if(form.uid.value.indexOf(cb.value+',')!=-1){form.uid.value=form.uid.value.replace(cb.value+',','');}else if(form.uid.value.indexOf(cb.value)!=-1){form.uid.value=form.uid.value.replace(cb.value,'');}}}
-sugarListView.prototype.check_entire_list=function(form,field,value,list_count){count=0;document.MassUpdate.massall.checked=true;document.MassUpdate.massall.disabled=true;for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field&&form.elements[i].disabled==false){if(form.elements[i].checked!=value)count++;form.elements[i].checked=value;form.elements[i].disabled=true;}}
+sugarListView.prototype.check_entire_list=function(form,field,value,list_count){count=0;$(document.MassUpdate.massall).each(function(){$(this).attr('checked',true).attr('disabled',true);});for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field&&form.elements[i].disabled==false){if(form.elements[i].checked!=value)count++;form.elements[i].checked=value;form.elements[i].disabled=true;}}
document.MassUpdate.select_entire_list.value=1;sugarListView.update_count(list_count,false);sugarListView.prototype.toggleSelected();}
-sugarListView.prototype.check_all=function(form,field,value,pageTotal){count=0;document.MassUpdate.massall.checked=value;if(document.MassUpdate.select_entire_list&&document.MassUpdate.select_entire_list.value==1){sugarListView.prototype.toggleSelected();document.MassUpdate.massall.disabled=true;}else
-document.MassUpdate.massall.disabled=false;for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field&&!(form.elements[i].disabled==true&&form.elements[i].checked==false)){form.elements[i].disabled=false;if(form.elements[i].checked!=value)
+sugarListView.prototype.check_all=function(form,field,value,pageTotal){count=0;$(document.MassUpdate.massall).each(function(){$(this).attr('checked',value);});if(document.MassUpdate.select_entire_list&&document.MassUpdate.select_entire_list.value==1)
+{sugarListView.prototype.toggleSelected();$(document.MassUpdate.massall).each(function(){$(this).attr('disabled',true);});}
+else
+{$(document.MassUpdate.massall).each(function(){$(this).attr('disabled',false);});}
+for(i=0;i<form.elements.length;i++){if(form.elements[i].name==field&&!(form.elements[i].disabled==true&&form.elements[i].checked==false)){form.elements[i].disabled=false;if(form.elements[i].checked!=value)
count++;form.elements[i].checked=value;if(!value){sugarListView.prototype.updateUid(form.elements[i],form);}}}
if(pageTotal>=0)
sugarListView.update_count(pageTotal);else if(value)
sugarListView.update_count(count,true);else
sugarListView.update_count(-1*count,true);sugarListView.prototype.toggleSelected();}
sugarListView.check_all=sugarListView.prototype.check_all;sugarListView.confirm_action=sugarListView.prototype.confirm_action;sugarListView.prototype.check_boxes=function(){var inputsCount=0;var checkedCount=0;var existing_onload=window.onload;var theForm=document.MassUpdate;inputs_array=theForm.elements;if(typeof theForm.uid.value!='undefined'&&theForm.uid.value!=""){checked_items=theForm.uid.value.split(",");if(theForm.select_entire_list.value==1){document.MassUpdate.massall.disabled=true;sugarListView.prototype.toggleSelected();$("#button_select_all_top").click();}
for(var wp=0;wp<inputs_array.length;wp++){if(inputs_array[wp].name=="mass[]"){inputsCount++;if(theForm.select_entire_list.value==1){inputs_array[wp].checked=true;inputs_array[wp].disabled=true;checkedCount++;}
-else{for(i in checked_items){if(inputs_array[wp].value==checked_items[i]){checkedCount++;inputs_array[wp].checked=true;sugarListView.prototype.check_item(inputs_array[wp],document.MassUpdate);}}}}}}
+else{for(i in checked_items){if(inputs_array[wp].value==checked_items[i]){checkedCount++;inputs_array[wp].checked=true;}}}}}}
else{for(var wp=0;wp<inputs_array.length;wp++){if(inputs_array[wp].name=="mass[]"){inputs_array[wp].checked=false;inputs_array[wp].disabled=false;}}
if(document.MassUpdate.massall){document.MassUpdate.massall.checked=false;document.MassUpdate.massall.disabled=false;}
sugarListView.update_count(0)}
@@ -491,10 +494,9 @@ if(item.fn){item.fn.call(context,item.obj);}};var i,len,item,test;for(i=0,len=th
else{notAvail.push(item);}}}
this._doWhenretryCount--;if(tryAgain){for(i=this._doWhenStack.length-1;i>-1;i--){item=this._doWhenStack[i];if(!item||!item.check){this._doWhenStack.splice(i,1);}}
this._startDoWhenInterval();}else{if(this._doWhenInterval){this._doWhenInterval.cancel();this._doWhenInterval=null;}}
-this._doWhenLocked=false;},buildAccessKeyLabels:function()
-{if(typeof(Y.env.ua)!=='undefined'){envStr='';browserOS=Y.env.ua['os'];isIE=Y.env.ua['ie'];isCR=Y.env.ua['chrome'];isFF=Y.env.ua['gecko'];isWK=Y.env.ua['webkit'];isOP=Y.env.ua['opera'];controlKey='';if(browserOS=='macintosh'){if(isIE){controlKey='Alt+';}else if(isWK){controlKey='Ctrl+Opt+';}else if(isOP){controlKey='Shift+Esc: ';}else{controlKey='Ctrl+';}}else{if(isFF){controlKey='Alt+Shift+';}else if(isOP){controlKey='Shift+Esc: ';}else{controlKey='Alt+';}}
+this._doWhenLocked=false;},buildAccessKeyLabels:function(){if(typeof(Y.env.ua)!=='undefined'){envStr='';browserOS=Y.env.ua['os'];isIE=Y.env.ua['ie'];isCR=Y.env.ua['chrome'];isFF=Y.env.ua['gecko'];isWK=Y.env.ua['webkit'];isOP=Y.env.ua['opera'];controlKey='';if(browserOS=='macintosh'){if(isIE){controlKey='Alt+';}else if(isWK){controlKey='Ctrl+Opt+';}else if(isOP){controlKey='Shift+Esc: ';}else{controlKey='Ctrl+';}}else{if(isFF){controlKey='Alt+Shift+';}else if(isOP){controlKey='Shift+Esc: ';}else{controlKey='Alt+';}}
allButtons=document.getElementsByTagName('input');for(i=0;i<allButtons.length;i++){if(allButtons[i].getAttribute('accesskey')&&allButtons[i].getAttribute('type')&&allButtons[i].getAttribute('type')=='button'){allButtons[i].setAttribute('title',allButtons[i].getAttribute('title')+' ['+controlKey+allButtons[i].getAttribute('accesskey')+']');}}
-if(typeof(keyboardhelpText)=='string'){keyboardhelpText=keyboardhelpText.replace(/Alt\+/g,controlKey);}}}};}();SUGAR.util.additionalDetailsCache=new Array();SUGAR.util.additionalDetailsCalls=new Array();if(typeof YAHOO!='undefined')YAHOO.util.Event.addListener(window,'load',SUGAR.util.setMaxLength);SUGAR.savedViews=function(){var selectedOrderBy;var selectedSortOrder;var displayColumns;var hideTabs;var columnsMeta;return{setChooser:function(){var displayColumnsDef=new Array();var hideTabsDef=new Array();var left_td=document.getElementById('display_tabs_td');if(typeof left_td=='undefined'||left_td==null)return;var right_td=document.getElementById('hide_tabs_td');var displayTabs=left_td.getElementsByTagName('select')[0];var hideTabs=right_td.getElementsByTagName('select')[0];for(i=0;i<displayTabs.options.length;i++){displayColumnsDef.push(displayTabs.options[i].value);}
+$("#shortcuts_dialog").html(function(i,text){return text.replace(/Alt\+/g,controlKey);});}}};}();SUGAR.util.additionalDetailsCache=new Array();SUGAR.util.additionalDetailsCalls=new Array();if(typeof YAHOO!='undefined')YAHOO.util.Event.addListener(window,'load',SUGAR.util.setMaxLength);SUGAR.savedViews=function(){var selectedOrderBy;var selectedSortOrder;var displayColumns;var hideTabs;var columnsMeta;return{setChooser:function(){var displayColumnsDef=new Array();var hideTabsDef=new Array();var left_td=document.getElementById('display_tabs_td');if(typeof left_td=='undefined'||left_td==null)return;var right_td=document.getElementById('hide_tabs_td');var displayTabs=left_td.getElementsByTagName('select')[0];var hideTabs=right_td.getElementsByTagName('select')[0];for(i=0;i<displayTabs.options.length;i++){displayColumnsDef.push(displayTabs.options[i].value);}
if(typeof hideTabs!='undefined'){for(i=0;i<hideTabs.options.length;i++){hideTabsDef.push(hideTabs.options[i].value);}}
if(!SUGAR.savedViews.clearColumns)
document.getElementById('displayColumnsDef').value=displayColumnsDef.join('|');document.getElementById('hideTabsDef').value=hideTabsDef.join('|');},select:function(saved_search_select){for(var wp=0;wp<document.search_form.saved_search_select.options.length;wp++){if(typeof document.search_form.saved_search_select.options[wp].value!='undefined'&&document.search_form.saved_search_select.options[wp].value==saved_search_select){document.search_form.saved_search_select.selectedIndex=wp;document.search_form.ss_delete.style.display='';document.search_form.ss_update.style.display='';}}},saved_search_action:function(action,delete_lang){if(action=='delete'){if(!confirm(delete_lang))return;}
@@ -654,7 +656,7 @@ t+=SUGAR.util.innerText(c);}
return t;},callOnChangeListers:function(field){var listeners=YAHOO.util.Event.getListeners(field,'change');if(listeners!=null){for(var i=0;i<listeners.length;i++){var l=listeners[i];l.fn.call(l.scope?l.scope:this,l.obj);}}},closeActivityPanel:{show:function(module,id,new_status,viewType,parentContainerId){if(SUGAR.util.closeActivityPanel.panel)
SUGAR.util.closeActivityPanel.panel.destroy();var singleModule=SUGAR.language.get("app_list_strings","moduleListSingular")[module];singleModule=typeof(singleModule!='undefined')?singleModule.toLowerCase():'';var closeText=SUGAR.language.get("app_strings","LBL_CLOSE_ACTIVITY_CONFIRM").replace("#module#",singleModule);SUGAR.util.closeActivityPanel.panel=new YAHOO.widget.SimpleDialog("closeActivityDialog",{width:"300px",fixedcenter:true,visible:false,draggable:false,close:true,text:closeText,constraintoviewport:true,buttons:[{text:SUGAR.language.get("app_strings","LBL_EMAIL_OK"),handler:function(){if(SUGAR.util.closeActivityPanel.panel)
SUGAR.util.closeActivityPanel.panel.hide();ajaxStatus.showStatus(SUGAR.language.get('app_strings','LBL_SAVING'));var args="action=save&id="+id+"&record="+id+"&status="+new_status+"&module="+module;var callback={success:function(o)
-{window.setTimeout("document.getElementById('search_form').submit()",0);},argument:{'parentContainerId':parentContainerId}};YAHOO.util.Connect.asyncRequest('POST','index.php',callback,args);},isDefault:true},{text:SUGAR.language.get("app_strings","LBL_EMAIL_CANCEL"),handler:function(){SUGAR.util.closeActivityPanel.panel.hide();}}]});SUGAR.util.closeActivityPanel.panel.setHeader(SUGAR.language.get("app_strings","LBL_CLOSE_ACTIVITY_HEADER"));SUGAR.util.closeActivityPanel.panel.render(document.body);SUGAR.util.closeActivityPanel.panel.show();}},setEmailPasswordDisplay:function(id,exists,formName){link=document.getElementById(id+'_link');pwd=document.getElementById(id);if(!pwd||!link)return;if(exists){pwd.style.display='none';link.style.display='';if(typeof(formName)!='undefined')
+{window.setTimeout(function(){if(document.getElementById('search_form'))document.getElementById('search_form').submit();else window.location.reload(true);},0);},argument:{'parentContainerId':parentContainerId}};YAHOO.util.Connect.asyncRequest('POST','index.php',callback,args);},isDefault:true},{text:SUGAR.language.get("app_strings","LBL_EMAIL_CANCEL"),handler:function(){SUGAR.util.closeActivityPanel.panel.hide();}}]});SUGAR.util.closeActivityPanel.panel.setHeader(SUGAR.language.get("app_strings","LBL_CLOSE_ACTIVITY_HEADER"));SUGAR.util.closeActivityPanel.panel.render(document.body);SUGAR.util.closeActivityPanel.panel.show();}},setEmailPasswordDisplay:function(id,exists,formName){link=document.getElementById(id+'_link');pwd=document.getElementById(id);if(!pwd||!link)return;if(exists){pwd.style.display='none';link.style.display='';if(typeof(formName)!='undefined')
removeFromValidate(formName,id);}else{pwd.style.display='';link.style.display='none';}},setEmailPasswordEdit:function(id){link=document.getElementById(id+'_link');pwd=document.getElementById(id);if(!pwd||!link)return;pwd.style.display='';link.style.display='none';},validateFileExt:function(fileName,allowedTypes){var ext=fileName.split('.').pop().toLowerCase();for(var i=allowedTypes.length;i>=0;i--){if(ext===allowedTypes[i]){return true;}}
return false;},arrayIndexOf:function(arr,val,start){if(typeof arr.indexOf=="function")
return arr.indexOf(val,start);for(var i=(start||0),j=arr.length;i<j;i++){if(arr[i]===val){return i;}}
View
2 include/utils/mvc_utils.php
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
18 jssource/src_files/include/SugarEmailAddress/SugarEmailAddress.js
@@ -263,7 +263,10 @@
removeButton.setAttribute("name", this.numberEmailAddresses);
removeButton.eaw = this;
removeButton.setAttribute("tabindex", tabIndexCount);
- removeButton.onclick = function(){this.eaw.removeEmailAddress(this.name);};
+ removeButton.onclick = function(){
+ this.eaw.removeEmailAddress(this.name);
+ return false;
+ };
removeButton.appendChild(removeButtonImg);
// set primary flag
@@ -330,7 +333,7 @@
newContentInvalidFlag.setAttribute("enabled", "true");
newContentInvalidFlag.eaw = this;
newContentInvalidFlag.setAttribute("tabindex", tabIndexCount);
- newContentInvalidFlag['onClick']= function(){this.eaw.toggleCheckbox(this)};
+ newContentInvalidFlag['onClick']= function(){this.eaw.toggleCheckbox(this);};
// set the verified flag and verified email value
newContentVerifiedFlag.setAttribute("type", "hidden");
@@ -443,10 +446,13 @@
removeEmailAddress : function(index) {
removeFromValidate(this.emailView, this.id + 'emailAddress' + index);
- var oNodeToRemove = Dom.get(this.id + 'emailAddressRow' + index);
- var form = Dom.getAncestorByTagName(oNodeToRemove, "form");
- oNodeToRemove.parentNode.removeChild(oNodeToRemove);
-
+ var oNodeToRemove = $("#" + this.id + 'emailAddressRow' + index);
+ var form = oNodeToRemove.parents("form")[0];
+ oNodeToRemove.find("input").each(function(index, node){
+ $(node).remove();
+ });
+ oNodeToRemove.css("display", "none");
+
var removedIndex = parseInt(index);
//If we are not deleting the last email address, we need to shift the numbering to fill the gap
if(this.numberEmailAddresses != removedIndex) {
View
137 jssource/src_files/include/javascript/sugar_3.js
@@ -2326,9 +2326,9 @@ sugarListView.prototype.updateUid = function(cb , form){
sugarListView.prototype.check_entire_list = function(form, field, value, list_count) {
// count number of items
count = 0;
- document.MassUpdate.massall.checked = true;
- document.MassUpdate.massall.disabled = true;
-
+ $(document.MassUpdate.massall).each(function(){
+ $(this).attr('checked', true).attr('disabled', true);
+ });
for (i = 0; i < form.elements.length; i++) {
if(form.elements[i].name == field && form.elements[i].disabled == false) {
if(form.elements[i].checked != value) count++;
@@ -2344,14 +2344,17 @@ sugarListView.prototype.check_entire_list = function(form, field, value, list_co
sugarListView.prototype.check_all = function(form, field, value, pageTotal) {
// count number of items
count = 0;
- document.MassUpdate.massall.checked = value;
+ $(document.MassUpdate.massall).each(function(){$(this).attr('checked', value);});
if (document.MassUpdate.select_entire_list &&
- document.MassUpdate.select_entire_list.value == 1) {
+ document.MassUpdate.select_entire_list.value == 1)
+ {
sugarListView.prototype.toggleSelected();
- document.MassUpdate.massall.disabled = true;
- } else
- document.MassUpdate.massall.disabled = false;
-
+ $(document.MassUpdate.massall).each(function(){$(this).attr('disabled', true);});
+ }
+ else
+ {
+ $(document.MassUpdate.massall).each(function(){$(this).attr('disabled', false);});
+ }
for (i = 0; i < form.elements.length; i++) {
if(form.elements[i].name == field && !(form.elements[i].disabled == true && form.elements[i].checked == false)) {
form.elements[i].disabled = false;
@@ -2404,7 +2407,8 @@ sugarListView.prototype.check_boxes = function() {
if(inputs_array[wp].value == checked_items[i]) {
checkedCount++;
inputs_array[wp].checked = true;
- sugarListView.prototype.check_item(inputs_array[wp], document.MassUpdate);
+ //Bug#52748: Total # of checked items are calculated in back-end side
+ //sugarListView.prototype.check_item(inputs_array[wp], document.MassUpdate);
}
}
}
@@ -3328,64 +3332,63 @@ SUGAR.util = function () {
}
this._doWhenLocked = false;
},
- buildAccessKeyLabels : function()
- {
- if (typeof(Y.env.ua) !== 'undefined'){
- envStr = '';
- browserOS = Y.env.ua['os'];
- isIE = Y.env.ua['ie'];
- isCR = Y.env.ua['chrome'];
- isFF = Y.env.ua['gecko'];
- isWK = Y.env.ua['webkit'];
- isOP = Y.env.ua['opera'];
- controlKey = '';
-
- //first determine the OS
- if(browserOS=='macintosh'){
- //we got a mac, lets use the mac specific commands while we check the browser
- if(isIE){
- //IE on a Mac? Not possible, but let's assign alt anyways for completions sake
- controlKey = 'Alt+';
- }else if(isWK){
- //Chrome or safari on a mac
- controlKey = 'Ctrl+Opt+';
- }else if(isOP){
- //Opera on a mac
- controlKey = 'Shift+Esc: ';
- }else{
- //default FF and everything else on a mac
- controlKey = 'Ctrl+';
- }
- }else{
- //this is not a mac so let's use the windows/unix commands while we check the browser
- if(isFF){
- //FF on windows/unix
- controlKey = 'Alt+Shift+';
- }else if(isOP){
- //Opera on windows/unix
- controlKey = 'Shift+Esc: ';
- }else {
- //this is the default for safari, IE and Chrome
- //if this is webkit and is NOT google, then we are most likely looking at Safari
- controlKey = 'Alt+';
- }
+ buildAccessKeyLabels : function() {
+ if (typeof(Y.env.ua) !== 'undefined'){
+ envStr = '';
+ browserOS = Y.env.ua['os'];
+ isIE = Y.env.ua['ie'];
+ isCR = Y.env.ua['chrome'];
+ isFF = Y.env.ua['gecko'];
+ isWK = Y.env.ua['webkit'];
+ isOP = Y.env.ua['opera'];
+ controlKey = '';
+
+ //first determine the OS
+ if(browserOS=='macintosh'){
+ //we got a mac, lets use the mac specific commands while we check the browser
+ if(isIE){
+ //IE on a Mac? Not possible, but let's assign alt anyways for completions sake
+ controlKey = 'Alt+';
+ }else if(isWK){
+ //Chrome or safari on a mac
+ controlKey = 'Ctrl+Opt+';
+ }else if(isOP){
+ //Opera on a mac
+ controlKey = 'Shift+Esc: ';
+ }else{
+ //default FF and everything else on a mac
+ controlKey = 'Ctrl+';
+ }
+ }else{
+ //this is not a mac so let's use the windows/unix commands while we check the browser
+ if(isFF){
+ //FF on windows/unix
+ controlKey = 'Alt+Shift+';
+ }else if(isOP){
+ //Opera on windows/unix
+ controlKey = 'Shift+Esc: ';
+ }else {
+ //this is the default for safari, IE and Chrome
+ //if this is webkit and is NOT google, then we are most likely looking at Safari
+ controlKey = 'Alt+';
+ }
- }
+ }
- //now lets retrieve all elements of type input
- allButtons = document.getElementsByTagName('input');
- //iterate through list and modify title if the accesskey is not empty
- for(i=0;i<allButtons.length;i++){
- if(allButtons[i].getAttribute('accesskey') && allButtons[i].getAttribute('type') && allButtons[i].getAttribute('type')=='button'){
- allButtons[i].setAttribute('title',allButtons[i].getAttribute('title')+' ['+controlKey+allButtons[i].getAttribute('accesskey')+']');
- }
- }
- //now change the text in the help div
- if(typeof(keyboardhelpText) =='string'){
- keyboardhelpText = keyboardhelpText.replace(/Alt\+/g,controlKey);
- }
- }// end if (typeof(Y.env.ua) !== 'undefined')
- }//end buildAccessKeyLabels()
+ //now lets retrieve all elements of type input
+ allButtons = document.getElementsByTagName('input');
+ //iterate through list and modify title if the accesskey is not empty
+ for(i=0;i<allButtons.length;i++){
+ if(allButtons[i].getAttribute('accesskey') && allButtons[i].getAttribute('type') && allButtons[i].getAttribute('type')=='button'){
+ allButtons[i].setAttribute('title',allButtons[i].getAttribute('title')+' ['+controlKey+allButtons[i].getAttribute('accesskey')+']');
+ }
+ }
+ //now change the text in the help div
+ $("#shortcuts_dialog").html(function(i, text) {
+ return text.replace(/Alt\+/g,controlKey);
+ });
+ }// end if (typeof(Y.env.ua) !== 'undefined')
+ }//end buildAccessKeyLabels()
};
}(); // end util
SUGAR.util.additionalDetailsCache = new Array();
@@ -4644,7 +4647,7 @@ closeActivityPanel: {
// Bug 51984: We need to submit the form just incase we have a form already submitted
// so we dont get a popup stating that the form needs to be resubmitted like it doesn,
// when you do a reload/refresh
- window.setTimeout("document.getElementById('search_form').submit()", 0);
+ window.setTimeout(function(){if(document.getElementById('search_form')) document.getElementById('search_form').submit(); else window.location.reload(true);}, 0);
},
argument:{'parentContainerId':parentContainerId}
};
View
7 jssource/src_files/themes/Sugar5/js/style.js
@@ -36,6 +36,13 @@
+ //set up any action style menus
+ $(document).ready(function(){
+ $("ul.clickMenu").each(function(index, node){
+ $(node).sugarActionMenu();
+ });
+ });
+
/**
* Handles loading the sitemap popup
*/
View
6 maintenance.php
@@ -35,8 +35,6 @@
* "Powered by SugarCRM".
********************************************************************************/
- $langHeader = get_language_header();
- print( "<html {$langHeader}>" );
+ print( "<html><body>" );
print( "Down for maintenance." );
- print( "</html>" );
-?>
+ print( "</body></html>" );
View
2 modules/Administration/DisplayWarnings.php
@@ -44,7 +44,7 @@ function displayAdminError($errorString){
}
//BEGIN SUGARCRM flav=pro
-if( file_exists('include/SugarSearchEngine/SugarSearchEngineFactory.php') )
+if( is_admin($current_user) && file_exists('include/SugarSearchEngine/SugarSearchEngineFactory.php') )
{
require_once('include/SugarSearchEngine/SugarSearchEngineFactory.php');
$ftsType = SugarSearchEngineFactory::getFTSEngineNameFromConfig();
View
11 modules/Administration/controller.php
@@ -148,13 +148,16 @@ public function action_saveglobalsearchsettings()
{
sugar_die($GLOBALS['app_strings']['ERR_NOT_ADMIN']);
}
- $GLOBALS['log']->fatal("*** SAVING ");
- try {
+
+ try
+ {
require_once('modules/Home/UnifiedSearchAdvanced.php');
$unifiedSearchAdvanced = new UnifiedSearchAdvanced();
$unifiedSearchAdvanced->saveGlobalSearchSettings();
- echo "true";
- } catch (Exception $ex) {
+ echo "true";
+ }
+ catch (Exception $ex)
+ {
echo "false";
}
}
View
2 modules/Administration/language/en_us.lang.php
@@ -1144,7 +1144,7 @@
'LBL_AVAILABLE_FTS_MODULES' => 'Select the module(s) for indexing.',
'LBL_FTS_INDEX_BUTTON' => 'Index',
- 'LBL_DELETE_FTS_DATA' => 'Delete existing data and index data in the selected modules only?',
+ 'LBL_DELETE_FTS_DATA' => 'Delete existing data when index is performed. Only data in the selected modules will be indexed.',
'LBL_CONNECT_STATUS' => 'Connection Status',
'LBL_FTS_SETTINGS_TITLE' => 'Full Text Search Settings',
'LBL_FTS_TEST' => 'Test',
View
8 modules/Calls/language/en_us.lang.php
@@ -147,6 +147,14 @@
'LBL_CANCEL_CREATE_INVITEE' => 'Cancel',
'LBL_EMPTY_SEARCH_RESULT' => 'Sorry, no results were found. Please create an invitee below.',
'LBL_NO_ACCESS' => 'You have no access to create $module',
+
+ 'LBL_REPEAT_TYPE' => 'Repeat Type',
+ 'LBL_REPEAT_INTERVAL' => 'Repeat Interval',
+ 'LBL_REPEAT_DOW' => 'Repeat Dow',
+ 'LBL_REPEAT_UNTIL' => 'Repeat Until',
+ 'LBL_REPEAT_COUNT' => 'Repeat Count',
+ 'LBL_REPEAT_PARENT_ID' => 'Repeat Parent ID',
+ 'LBL_RECURRING_SOURCE' => 'Recurring Source',
);
View
22 modules/Calls/metadata/editviewdefs.php
@@ -55,18 +55,34 @@
array (
0 =>
array (
- 'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\'; document.EditView.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}document.EditView.return_id.value=\'\'; {/if}formSubmitCheck();;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" id="SAVE">',
+ 'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" id="SAVE_HEADER" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\'; document.EditView.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}document.EditView.return_id.value=\'\'; {/if}formSubmitCheck();;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
),
1 => 'CANCEL',
2 =>
array (
- 'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" class="button" onclick="document.EditView.send_invites.value=\'1\';SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\';document.EditView.return_action.value=\'EditView\';document.EditView.return_module.value=\'{$smarty.request.return_module}\';formSubmitCheck();;" type="button" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
+ 'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" id="SAVE_SEND_HEADER" class="button" onclick="document.EditView.send_invites.value=\'1\';SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\';document.EditView.return_action.value=\'EditView\';document.EditView.return_module.value=\'{$smarty.request.return_module}\';formSubmitCheck();;" type="button" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
),
3 =>
array (
- 'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees(); document.EditView.status.value=\'Held\'; document.EditView.action.value=\'Save\'; document.EditView.return_module.value=\'Calls\'; document.EditView.isDuplicate.value=true; document.EditView.isSaveAndNew.value=true; document.EditView.return_action.value=\'EditView\'; document.EditView.return_id.value=\'{$fields.id.value}\'; formSubmitCheck();" type="button" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
+ 'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" id="CLOSE_CREATE_HEADER" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees(); document.EditView.status.value=\'Held\'; document.EditView.action.value=\'Save\'; document.EditView.return_module.value=\'Calls\'; document.EditView.isDuplicate.value=true; document.EditView.isSaveAndNew.value=true; document.EditView.return_action.value=\'EditView\'; document.EditView.return_id.value=\'{$fields.id.value}\'; formSubmitCheck();" type="button" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
),
),
+ 'buttons_footer' =>
+ array (
+ 0 =>
+ array (
+ 'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" id="SAVE_FOOTER" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\'; document.EditView.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}document.EditView.return_id.value=\'\'; {/if}formSubmitCheck();;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
+ ),
+ 1 => 'CANCEL',
+ 2 =>
+ array (
+ 'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" id="SAVE_SEND_FOOTER" class="button" onclick="document.EditView.send_invites.value=\'1\';SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\';document.EditView.return_action.value=\'EditView\';document.EditView.return_module.value=\'{$smarty.request.return_module}\';formSubmitCheck();;" type="button" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
+ ),
+ 3 =>
+ array (
+ 'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" id="CLOSE_CREATE_FOOTER" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees(); document.EditView.status.value=\'Held\'; document.EditView.action.value=\'Save\'; document.EditView.return_module.value=\'Calls\'; document.EditView.isDuplicate.value=true; document.EditView.isSaveAndNew.value=true; document.EditView.return_action.value=\'EditView\'; document.EditView.return_id.value=\'{$fields.id.value}\'; formSubmitCheck();" type="button" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
+ ),
+ ),
'footerTpl' => 'modules/Calls/tpls/footer.tpl',
),
'widths' =>
View
6 modules/Calls/tpls/footer.tpl
@@ -103,9 +103,9 @@ YAHOO.util.Event.onContentReady("{/literal}{{$form_name}}{literal}",function() {
</form>
<form >
<div class="buttons">
- {{if !empty($form) && !empty($form.buttons)}}
- {{foreach from=$form.buttons key=val item=button}}
- {{sugar_button module="$module" id="$button" view="$view"}}
+ {{if !empty($form) && !empty($form.buttons_footer)}}
+ {{foreach from=$form.buttons_footer key=val item=button}}
+ {{sugar_button module="$module" id="$button" location="FOOTER" view="$view"}}
{{/foreach}}
{{else}}
{{sugar_button module="$module" id="SAVE" view="$view"}}
View
8 modules/Documents/metadata/subpanels/ForContractType.php
@@ -52,23 +52,23 @@
'name' => 'document_name',
'vname' => 'LBL_LIST_DOCUMENT_NAME',
'widget_class' => 'SubPanelDetailViewLink',
- 'width' => '30%',
+ 'width' => '40%',
),
'is_template'=>array(
'name' => 'is_template',
'vname' => 'LBL_LIST_IS_TEMPLATE',
- 'width' => '5%',
+ 'width' => '15%',
'widget_type'=>'checkbox',
),
'template_type'=>array(
'name' => 'template_types',
'vname' => 'LBL_LIST_TEMPLATE_TYPE',
- 'width' => '15%',
+ 'width' => '20%',
),
'latest_revision'=>array(
'name' => 'latest_revision',
'vname' => 'LBL_LATEST_REVISION',
- 'width' => '10%',
+ 'width' => '15%',
'sortable' => false
),
'edit_button'=>array(
View
748 modules/Documents/vardefs.php
@@ -1,5 +1,5 @@
<?php
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
@@ -36,400 +36,404 @@
********************************************************************************/
$dictionary['Document'] = array('table' => 'documents',
- 'unified_search' => true,
- 'full_text_search' => true,
- 'unified_search_default_enabled' => true,
- 'fields' => array (
+ 'unified_search' => true,
+ 'full_text_search' => true,
+ 'unified_search_default_enabled' => true,
+ 'fields' => array(
- 'document_name' =>
- array (
- 'name' => 'document_name',
- 'vname' => 'LBL_NAME',
- 'type' => 'varchar',
- 'len' => '255',
- 'required'=>true,
- 'importable' => 'required',
- 'unified_search' => true,
- 'full_text_search' => array('boost' => 3),
- ),
- 'name'=>
- array('name'=>'name', 'vname' => 'LBL_NAME', 'source'=>'non-db', 'type'=>'varchar'),
-'doc_id' =>
- array (
- 'name' => 'doc_id',
- 'vname' => 'LBL_DOC_ID',
- 'type' => 'varchar',
- 'len' => '100',
- 'comment' => 'Document ID from documents web server provider',
- 'importable' => false,
- 'studio' => 'false',
- ),
- 'doc_type' =>
- array (
- 'name' => 'doc_type',
- 'vname' => 'LBL_DOC_TYPE',
- 'type' => 'enum',
- 'function' => 'getDocumentsExternalApiDropDown',
- 'len' => '100',
- 'comment' => 'Document type (ex: Google, box.net, LotusLive)',
- 'popupHelp' => 'LBL_DOC_TYPE_POPUP',
- 'massupdate' => false,
- 'options' => 'eapm_list',
- 'default' => 'Sugar',
- 'studio' => 'false',
- ),
-'doc_url' =>
- array (
- 'name' => 'doc_url',
- 'vname' => 'LBL_DOC_URL',
- 'type' => 'varchar',
- 'len' => '255',
- 'comment' => 'Document URL from documents web server provider',
- 'importable' => false,
- 'massupdate' => false,
- 'studio' => 'false',
- ),
- 'filename' =>
- array (
- 'name' => 'filename',
- 'vname' => 'LBL_FILENAME',
- 'type' => 'file',
- 'source' => 'non-db',
- 'comment' => 'The filename of the document attachment',
- 'required' => true,
- 'noChange' => true,
- 'allowEapm' => true,
- 'fileId' => 'document_revision_id',
- 'docType' => 'doc_type',
- ),
+ 'document_name' =>
+ array(
+ 'name' => 'document_name',
+ 'vname' => 'LBL_NAME',
+ 'type' => 'varchar',
+ 'len' => '255',
+ 'required' => true,
+ 'importable' => 'required',
+ 'unified_search' => true,
+ 'full_text_search' => array('boost' => 3),
+ ),
+ 'name' => array(
+ 'name' => 'name',
+ 'vname' => 'LBL_NAME',
+ 'source' => 'non-db',
+ 'type' => 'varchar'
+ ),
+ 'doc_id' =>
+ array(
+ 'name' => 'doc_id',
+ 'vname' => 'LBL_DOC_ID',
+ 'type' => 'varchar',
+ 'len' => '100',
+ 'comment' => 'Document ID from documents web server provider',
+ 'importable' => false,
+ 'studio' => 'false',
+ ),
+ 'doc_type' =>
+ array(
+ 'name' => 'doc_type',
+ 'vname' => 'LBL_DOC_TYPE',
+ 'type' => 'enum',
+ 'function' => 'getDocumentsExternalApiDropDown',
+ 'len' => '100',
+ 'comment' => 'Document type (ex: Google, box.net, LotusLive)',
+ 'popupHelp' => 'LBL_DOC_TYPE_POPUP',
+ 'massupdate' => false,
+ 'options' => 'eapm_list',
+ 'default' => 'Sugar',
+ 'studio' => 'false',
+ ),
+ 'doc_url' =>
+ array(
+ 'name' => 'doc_url',
+ 'vname' => 'LBL_DOC_URL',
+ 'type' => 'varchar',
+ 'len' => '255',
+ 'comment' => 'Document URL from documents web server provider',
+ 'importable' => false,
+ 'massupdate' => false,
+ 'studio' => 'false',
+ ),
+ 'filename' =>
+ array(
+ 'name' => 'filename',
+ 'vname' => 'LBL_FILENAME',
+ 'type' => 'file',
+ 'source' => 'non-db',
+ 'comment' => 'The filename of the document attachment',
+ 'required' => true,
+ 'noChange' => true,
+ 'allowEapm' => true,
+ 'fileId' => 'document_revision_id',
+ 'docType' => 'doc_type',
+ ),
-'active_date' =>
- array (
- 'name' => 'active_date',
- 'vname' => 'LBL_DOC_ACTIVE_DATE',
- 'type' => 'date',
- 'importable' => 'required',
- 'required' => true,
- 'display_default' => 'now',
- ),
+ 'active_date' =>
+ array(
+ 'name' => 'active_date',
+ 'vname' => 'LBL_DOC_ACTIVE_DATE',
+ 'type' => 'date',
+ 'importable' => 'required',
+ 'required' => true,
+ 'display_default' => 'now',
+ ),
-'exp_date' =>
- array (
- 'name' => 'exp_date',
- 'vname' => 'LBL_DOC_EXP_DATE',
- 'type' => 'date',
- ),
+ 'exp_date' =>
+ array(
+ 'name' => 'exp_date',
+ 'vname' => 'LBL_DOC_EXP_DATE',
+ 'type' => 'date',
+ ),
- 'category_id' =>
- array (
- 'name' => 'category_id',
- 'vname' => 'LBL_SF_CATEGORY',
- 'type' => 'enum',
- 'len' => 100,
- 'options' => 'document_category_dom',
- 'reportable'=>true,
- ),
+ 'category_id' =>
+ array(
+ 'name' => 'category_id',
+ 'vname' => 'LBL_SF_CATEGORY',
+ 'type' => 'enum',
+ 'len' => 100,
+ 'options' => 'document_category_dom',
+ 'reportable' => true,
+ ),
- 'subcategory_id' =>
- array (
- 'name' => 'subcategory_id',
- 'vname' => 'LBL_SF_SUBCATEGORY',
- 'type' => 'enum',
- 'len' => 100,
- 'options' => 'document_subcategory_dom',
- 'reportable'=>true,
- ),
+ 'subcategory_id' =>
+ array(
+ 'name' => 'subcategory_id',
+ 'vname' => 'LBL_SF_SUBCATEGORY',
+ 'type' => 'enum',
+ 'len' => 100,
+ 'options' => 'document_subcategory_dom',
+ 'reportable' => true,
+ ),
- 'status_id' =>
- array (
- 'name' => 'status_id',
- 'vname' => 'LBL_DOC_STATUS',
- 'type' => 'enum',
- 'len' => 100,
- 'options' => 'document_status_dom',
- 'reportable'=>false,
- ),
+ 'status_id' =>
+ array(
+ 'name' => 'status_id',
+ 'vname' => 'LBL_DOC_STATUS',
+ 'type' => 'enum',
+ 'len' => 100,
+ 'options' => 'document_status_dom',
+ 'reportable' => false,
+ ),
- 'status' =>
- array (
- 'name' => 'status',
- 'vname' => 'LBL_DOC_STATUS',
- 'type' => 'varchar',
- 'source' => 'non-db',
- 'comment' => 'Document status for Meta-Data framework',
- ),
+ 'status' =>
+ array(
+ 'name' => 'status',
+ 'vname' => 'LBL_DOC_STATUS',
+ 'type' => 'varchar',
+ 'source' => 'non-db',
+ 'comment' => 'Document status for Meta-Data framework',
+ ),
- 'document_revision_id'=>
- array (
- 'name' => 'document_revision_id',
- 'vname' => 'LBL_LATEST_REVISION',
- 'type' => 'varchar',
- 'len' => '36',
- 'reportable'=>false,
- ),
+ 'document_revision_id' =>
+ array(
+ 'name' => 'document_revision_id',
+ 'vname' => 'LBL_LATEST_REVISION',
+ 'type' => 'varchar',
+ 'len' => '36',
+ 'reportable' => false,
+ ),
- 'revisions' =>
- array (
- 'name' => 'revisions',
- 'type' => 'link',
- 'relationship' => 'document_revisions',
- 'source'=>'non-db',
- 'vname'=>'LBL_REVISIONS',
- ),
+ 'revisions' =>
+ array(
+ 'name' => 'revisions',
+ 'type' => 'link',
+ 'relationship' => 'document_revisions',
+ 'source' => 'non-db',
+ 'vname' => 'LBL_REVISIONS',
+ ),
- 'revision' =>
- array (
- 'name' => 'revision',
- 'vname' => 'LBL_DOC_VERSION',
- 'type' => 'varchar',
- 'reportable'=>false,
- 'required' => true,
- 'source'=>'non-db',
- 'importable' => 'required',
- 'required' => true,
- 'default' => '1',
- ),
+ 'revision' =>
+ array(
+ 'name' => 'revision',
+ 'vname' => 'LBL_DOC_VERSION',
+ 'type' => 'varchar',
+ 'reportable' => false,
+ 'required' => true,
+ 'source' => 'non-db',
+ 'importable' => 'required',
+ 'required' => true,
+ 'default' => '1',
+ ),
- 'last_rev_created_name' =>
- array (
- 'name' => 'last_rev_created_name',
- 'vname' => 'LBL_LAST_REV_CREATOR',
- 'type' => 'varchar',
- 'reportable'=>false,
- 'source'=>'non-db'
- ),
- 'last_rev_mime_type' =>
- array (
- 'name' => 'last_rev_mime_type',
- 'vname' => 'LBL_LAST_REV_MIME_TYPE',
- 'type' => 'varchar',
- 'reportable'=>false,
- 'studio' => 'false',
- 'source'=>'non-db'
- ),
- 'latest_revision' =>
- array (
- 'name' => 'latest_revision',
- 'vname' => 'LBL_LATEST_REVISION',
- 'type' => 'varchar',
- 'reportable'=>false,
- 'source'=>'non-db'
- ),
- 'last_rev_create_date' =>
- array (