Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • vtiger/vtigercrm
  • varma/vtigercrm
  • alanbell/vtigercrm
  • mariusz.krzaczkowski/vtigercrm
  • manu.k/vtigercrm
  • adrgranado/vtigercrm
  • uma.s/vtigercrm
  • sardoj/vtigercrm
  • preexo/vtigercrm
  • david.valminos/vtigercrm
  • luca.saba/vtigercrm
  • dubwise/vtigercrm
  • valmir.ttcasolucoes/vtigercrm
  • lord_alan/vtigercrm
  • adrien.futschik/vtigercrm
  • edonit.rexhepi/vtigercrm
  • robert.heinze/vtigercrm
  • nrdimatteo/vtigercrm
  • sebastianzahan/vtigercrm
  • Miky/vtigercrm
  • germanf/vtigercrm
  • bernhardkau1/vtigercrm
  • olegtsoy/vtigercrm
  • grandel/vtigercrm
  • mario.thummler/vtigercrm
  • sutharsan/vtigercrm
  • james.douglas/vtigercrm
  • vikas/vtigercrm
  • jeffmchristensen/vtigercrm
  • lukasz.g/vtigercrm
  • nicolas.gasnier/vtigercrm
  • hamish.theitcompany/vtigercrm
  • engrbm87/vtigercrm
  • Quoc/vtigercrm
  • peter.maria.engeli/vtigercrm
  • kiranraju.j/vtigercrm
  • manuel.lozano/vtigercrm
  • dhaupin/vtigercrm
  • Ragupathyranesh/vtigercrm
  • Stefanbauer/vtigercrm
  • ruben.estrada/vtigercrm
  • sg_mwi1/vtigercrm
  • khaluk/vtigercrm
  • franzfroemel/vtigercrm
  • milan9615/vtigercrm
  • carlos.martin/vtigercrm
  • cmaggi/vtigercrm
  • Soltoon.theLeader/vtigercrm
  • alex.kaplun/vtigercrm
  • navid.hosseini/vtigercrm
  • maie/vtigercrm
  • simonetravaglini/vtigercrm
  • bertrand.wattel/vtigercrm
  • balaji.m/vtigercrm
  • mclarke4/vtigercrm
  • lajeeshk/vtigercrm
  • liam/vtigercrm
  • novikov.sergey/vtigercrm
  • johnwayne.williamson/vtigercrm
  • florian.strahberger-schramm/vtigercrm
  • daniel.schaefer/vtigercrm
  • christopher.gunther/vtigercrm
  • adrien.faveraux/vtigercrm
  • carsten.brandt/vtigercrm
  • stephane.molano/vtigercrm
  • krastan.petrov/vtigercrm
  • alfredo.bravo/vtigercrm
  • flipflop.Joe/vtigercrm
  • mirko.stagni/vtigercrm
  • remigio.ruberto/vtigercrm
  • gautam.dhudashiya/vtigercrm
  • manish.devitechnosolutions1/vtigercrm
  • matinbeigi/vtigercrm
  • devs/vtigercrm
  • happy.dev/vtigercrm
  • m.gigon/vtigercrm
  • manuelmigone/vtigercrm
  • eduardo.gqf/vtigercrm
  • elsayedEl-araby/vtigercrm
  • mirza.mehran/vtigercrm
  • maurice.courtois/vtigercrm
  • zuhri.utama/vtigercrm
  • shilpa.k/vtigercrm
  • Ignazio/vtigercrm
  • code80team/vtigercrm
  • code80/vtigercrm
  • nilay.automatesmb/cache
  • greeshma.kk/vtigercrm
  • vijay.tilak/vtigercrm
  • Paolo.Palamini/vtigercrm
  • estevan/vtigercrm
  • mobilcmcdk/vtigercrm
  • massimiliano.vessi/vtigercrm
  • daniel.voelskow/vtigercrm
  • james1/vtigercrm
  • lokesh.s/vtigercrm
  • rdb/vtigercrm
  • neftaliyagua/vtigercrm
  • angelo.paglialonga/vtigercrm
  • webmarka/vtigercrm
  • javanile/vtigercrm
  • akshath/vtigercrm
  • Hemanth/vtigercrm
  • opencrmitalia/vtigercrm
  • direzione/vtigercrm
  • umadas306/vtigercrm
  • jd-wraptec/vtigercrm
  • felipe.camacho/vtigercrm
  • Martin.allen/vtigercrm
  • amit.r/vtigercrm
  • vicus/vtigercrm
  • dev.osmi/vtigercrm
  • laurent.guillout/vtigercrm
  • christian.blaeul/vtigercrm
  • ap.js100/vtigercrm
  • yoann.mourot/vtigercrm-temp
  • christian.cruz/vtigercrm
  • zyli/vtigercrm
  • kaushik.p/vtigercrm
  • Madhuk/vtigercrm
  • cinakzm/vtigercrm
  • raquel.martinez/vtigercrm
  • tosajibadhi/vtigercrm
  • melvin.i/vtigercrm-melvin
  • ashashingadia/vtigercrm
  • stefanwarnat/vtigercrm
  • saran.s/vtigercrm
  • eduardomozart/vtigercrm
  • Daniel.Lennartz1/vtigercrm
  • juergen.fassmann/vtigercrm
  • Michel.Ram/vtigercrm
  • vincenzo.bruno/vtigercrm
132 results
Show changes
......@@ -55,7 +55,13 @@ class MailManager_Relation_View extends MailManager_Abstract_View {
// Check if the message is already linked.
$linkedto = MailManager_Relate_Action::associatedLink($request->get('_msguid'));
// If the message was not linked, lookup for matching records, using FROM address
// If the message was not linked, lookup for matching records, using FROM address unless it is in the sent folder
$folder=$request->get('_folder');
if ($folder=="Sent"){
$contacts=$request->get('_msendto');
}else{
$contacts=$request->get('_mfrom');
}
if (empty($linkedto)) {
$results = array();
$modules = array();
......@@ -63,10 +69,8 @@ class MailManager_Relation_View extends MailManager_Abstract_View {
foreach (self::$MODULES as $MODULE) {
if(!in_array($MODULE, $allowedModules)) continue;
$from = $request->get('_mfrom');
if(empty($from)) continue;
$results[$MODULE] = $this->lookupModuleRecordsWithEmail($MODULE, $from);
if(empty($contacts)) continue;
$results[$MODULE] = $this->lookupModuleRecordsWithEmail($MODULE, $contacts);
$describe = $this->ws_describe($MODULE);
$modules[$MODULE] = array('label' => $describe['label'], 'name' => textlength_check($describe['name']), 'id' => $describe['idPrefix'] );
......@@ -417,18 +421,22 @@ class MailManager_Relation_View extends MailManager_Abstract_View {
* @param Email Address $email
* @return Array
*/
public function lookupModuleRecordsWithEmail($module, $email) {
public function lookupModuleRecordsWithEmail($module, $emails) {
$currentUserModel = vglobal('current_user');
$query = $this->buildSearchQuery($module, $email, 'EMAIL');
$qresults = vtws_query( $query, $currentUserModel );
$describe = $this->ws_describe($module);
$labelFields = explode(',', $describe['labelFields']);
//could be to multiple email addresses
$results = array();
foreach($qresults as $qresult) {
$labelValues = array();
foreach($labelFields as $fieldname) {
if(isset($qresult[$fieldname])) $labelValues[] = $qresult[$fieldname];
foreach(explode(",",$emails) as $email){
$query = $this->buildSearchQuery($module, $email, 'EMAIL');
$qresults = vtws_query( $query, $currentUserModel );
$describe = $this->ws_describe($module);
$labelFields = explode(',', $describe['labelFields']);
foreach($qresults as $qresult) {
$labelValues = array();
foreach($labelFields as $fieldname) {
if(isset($qresult[$fieldname])) $labelValues[] = $qresult[$fieldname];
}
$ids = vtws_getIdComponents($qresult['id']);
$results[] = array( 'wsid' => $qresult['id'], 'id' => $ids[1], 'label' => implode(' ', $labelValues));
}
$ids = vtws_getIdComponents($qresult['id']);
$results[] = array( 'wsid' => $qresult['id'], 'id' => $ids[1], 'label' => implode(' ', $labelValues));
......@@ -440,4 +448,4 @@ class MailManager_Relation_View extends MailManager_Abstract_View {
return $request->validateWriteAccess();
}
}
?>
\ No newline at end of file
?>
......@@ -766,6 +766,7 @@ if (typeof(MailManager) == 'undefined') {
var meta = MailManager.mail_open_meta;
AppConnector.request(MailManager._baseurl() + "_operation=relation&_operationarg=find&_mfrom=" + encodeURIComponent(meta['from']) +
'&_msendto='+ encodeURIComponent(meta['sendto']) +
'&_folder=' +encodeURIComponent(meta['folder']) +'&_msgno=' +encodeURIComponent(meta['msgno']) +'&_msguid=' +
encodeURIComponent(meta['msguid'].replace('<', '&lt;').replace('>', '&gt;'))).then(function(responseJSON) {
responseJSON = JSON.parse(responseJSON);
......
......@@ -20,7 +20,8 @@ class SMSNotifier_Record_Model extends Vtiger_Record_Model {
$statusColor = $this->getColorForStatus($statusDetails[0]['status']);
$this->setData($statusDetails[0]);
$data = array_merge($statusDetails[0], array('statuscolor' => $statusColor));
$this->setData($data);
return $this;
}
......
......@@ -406,24 +406,13 @@ var app = {
formAlignmentAfterValidation : function(form){
// to avoid hiding of error message under the fixed nav bar
var destination = form.find(".formError:not('.greenPopup'):first").offset().top;
var resizedDestnation = destination-105;
jQuery('html').animate({
scrollTop:resizedDestnation
}, 'slow');
},
/**
* Function to push down the error message size when validation is invoked
* @params : form Element
*/
formAlignmentAfterValidation : function(form){
// to avoid hiding of error message under the fixed nav bar
var destination = form.find(".formError:not('.greenPopup'):first").offset().top;
var resizedDestnation = destination-105;
jQuery('html').animate({
scrollTop:resizedDestnation
}, 'slow');
var formOffset = form.find(".formError:not('.greenPopup'):first").offset();
if(formOffset !== null && typeof(formOffset) === 'object' && formOffset.hasOwnProperty('top')) {
var resizedDestnation = formOffset.top - 105;
$('html, body').animate({
scrollTop:resizedDestnation
}, 'slow');
}
},
convertToDatePickerFormat: function(dateFormat){
......
......@@ -587,6 +587,7 @@
<field name="user_name" type="C" size="50" />
<field name="user_password" type="C" size="30" />
<field name="type" type="C" size="5" />
<field name="cryptmode" type="C" size="20" />
<field name="last_login_time" type="T" />
<field name="login_time" type="T" />
<field name="logout_time" type="T" />
......@@ -5401,7 +5402,7 @@
<field name="listprice" type="N" size="25.3" />
<field name="discount_percent" type="N" size="7.3" />
<field name="discount_amount" type="N" size="25.3" />
<field name="comment" type="C" size="250" />
<field name="comment" type="X" />
<field name="description" type="X" />
<field name="incrementondel" type="I" size="11">
<notnull />
......
......@@ -236,7 +236,7 @@ class Vtiger_Field extends Vtiger_FieldBasic {
global $adb;
$instances = false;
$query = "SELECT * FROM vtiger_field WHERE tabid=? ORDER BY sequence";
$query = "SELECT * FROM vtiger_field left join vtiger_blocks on vtiger_field.block=vtiger_blocks.blockid WHERE vtiger_field.tabid=? ORDER BY vtiger_blocks.sequence,vtiger_field.sequence";
$queryParams = Array($moduleInstance->id);
$result = $adb->pquery($query, $queryParams);
......@@ -259,4 +259,4 @@ class Vtiger_Field extends Vtiger_FieldBasic {
self::log("Deleting fields of the module ... DONE");
}
}
?>
\ No newline at end of file
?>