Adding more info when returning a response

skala
Julio Montoya 12 years ago
parent 8a3788553d
commit b37570b298
  1. 8
      tests/migrate/migration.class.php
  2. 6
      tests/migrate/migration.custom.class.php

@ -526,7 +526,7 @@ class Migration {
'dest_id' => null,
'status_id' => 0
),
//Notas
array(
//'action' => 'TRANSACTION_TYPE_ADD_NOTA',
@ -1003,9 +1003,9 @@ class Migration {
return array(
'message' => $message,
'raw_reponse' =>
//Display::page_subheader2("Transactions:").
Display::page_subheader3("Chamilo transaction info:")."<pre>".print_r($transaction_chamilo_info, true)."</pre>".
Display::page_subheader3("Webservice transaction reponse:")."<pre>".print_r($result, true)."</pre>",
//Display::page_subheader2("Transactions:").
Display::page_subheader3("Chamilo transaction info:")."<pre>".print_r($transaction_chamilo_info, true)."</pre>".
Display::page_subheader3("Webservice transaction reponse:")."<pre>".print_r($result, true)."</pre>",
);
}
}

@ -1615,10 +1615,10 @@ error_log('Editing extra field: '.print_r($extra_field_option_info,1));
$message = "Result already added ";
}
} else {
$message = "Evaluation not found ";
$message = "Evaluation not found in gradebook: {$gradebook['id']} : in course: {$course_data['code']} - session_id: $session_id";
}
} else {
$message = "Gradebook does not exists ";
$message = "Gradebook does not exists in course: {$course_data['code']} - session_id: $session_id";
}
} else {
$message = "Something is wrong with the course ";
@ -2165,7 +2165,7 @@ error_log('Editing extra field: '.print_r($extra_field_option_info,1));
$count = 1;
if (!empty($transactions)) {
foreach ($transactions as $transaction_info) {
//Add transactions here
//Add transactions here
error_log("Processing transaction: ".$count);
$result = self::process_transaction($transaction_info, $transaction_status_list);
$count++;

Loading…
Cancel
Save