Changeset 684
- Timestamp:
- 12/16/09 15:09:06 (2 years ago)
- Location:
- trunk/phpbms/modules
- Files:
-
- 4 modified
-
base/javascript/adminsettings.js (modified) (1 diff)
-
mailchimp/include/list_sync.php (modified) (3 diffs)
-
mailchimp/javascript/manual_list_sync.js (modified) (2 diffs)
-
mailchimp/scheduler_list_sync.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/base/javascript/adminsettings.js
r631 r684 359 359 360 360 processSpan.style.display = "none"; 361 console.log(updateResponse.checked);362 361 if(updateResponse.checked == true){ 363 362 date.value = updateResponse.date; -
trunk/phpbms/modules/mailchimp/include/list_sync.php
r682 r684 118 118 $tempArray["code"] = $errorCode; 119 119 120 if($ stopScript){120 if($fatal){ 121 121 $this->stopScript = true; 122 122 $tempArray["errorType"] = "error"; … … 418 418 if($this->lastSyncDate) 419 419 $querystatement .= " AND `modifieddate` > '".$this->lastSyncDate."'"; 420 420 421 421 422 $queryresult = $this->db->query($querystatement); … … 452 453 foreach($return['errors'] as $val){ 453 454 454 $this->_addError("Subscribing or updating email '".$val["row"]["EMAIL"]."' failed: ".$val["message"], $val["code"]);455 $this->_addError("Subscribing or updating uuid '".$val["row"]["UUID"]."' failed: ".$val["message"], $val["code"]); 455 456 456 457 $memberInfo = $this->api->listMemberInfo($this->listId, $val["row"]["EMAIL"]); -
trunk/phpbms/modules/mailchimp/javascript/manual_list_sync.js
r682 r684 40 40 }else{ 41 41 resultText.innerHTML = "The following errors were found:"; 42 for(var error in response.details){ 43 44 result.innerHTML += "\n"; 45 result.innerHTML += capitalize(error.type)+": "+error.message+"( "+error.code+" )" 42 43 for(var i = 0; i < response.details.length; i++){ 44 45 resultText.innerHTML += "\n"; 46 resultText.innerHTML += capitalize(response.details[i].errorType)+": "+response.details[i].message+"( "+response.details[i].code+" )" 46 47 47 48 }//end for … … 88 89 89 90 } 90 function capitalize( string){91 function capitalize(theString){ 91 92 92 var theReturn = string.substring(0,1).toUpperCase();93 theReturn += string.substring(1, string.length);93 var theReturn = theString.substring(0,1).toUpperCase(); 94 theReturn += theString.substring(1, theString.length); 94 95 return theReturn; 95 96 -
trunk/phpbms/modules/mailchimp/scheduler_list_sync.php
r681 r684 1 1 <?php 2 2 //uncomment if need debug 3 if(!class_exists("appError"))4 include_once("../../include/session.php");3 //if(!class_exists("appError")) 4 // include_once("../../include/session.php"); 5 5 include("include/MCAPI.class.php");//for MCAPI CLASS (listSync class uses it) 6 6 include("include/list_sync.php");//for listSync class … … 17 17 18 18 $response = $listSync->process(); 19 var_dump($response);20 exit;21 19 22 20 if(isset($response["type"])){