diff --git a/app/Controllers/Inwardgateregister.php b/app/Controllers/Inwardgateregister.php
index c16e57a9..f2305e53 100755
--- a/app/Controllers/Inwardgateregister.php
+++ b/app/Controllers/Inwardgateregister.php
@@ -962,14 +962,14 @@ function viewIGRDetails()
"DriverName" => "Driver Name",
"DriverMobileNumber" => "Driver Mobile Number"
];
- $history_content = "
The following values have been edited:
";
+ $history_content = "
The following values have been edited:";
for ($j = 0; $j < count($history); $j++) {
$field_name = $history[$j]->field;
$readable_field = isset($field_labels[$field_name]) ? $field_labels[$field_name] : $field_name;
- $history_content .= "
" . $readable_field . ": " . $history[$j]->old_data . " was updated to " . $history[$j]->new_data . ".";
+ $history_content .= "
" . $readable_field . ": `" . $history[$j]->old_data . "` was updated into `" . $history[$j]->new_data . "` .";
}
for ($i = 0; $i < count($result_for_email['emails']); $i++) {
@@ -981,7 +981,7 @@ function viewIGRDetails()
'company' => $result_for_email['company'],
'from_mail'=> $result_for_email['from_mail']
]);
-
+
log_message('error', 'email reponse : ' . json_encode($email_response));
// Determine the email response
$mail_log = isset($email_response['success']) ? 'Email sent successfully' : 'Failed to send email';
@@ -1538,8 +1538,8 @@ function updateIGRWeight(){
$new_data = $hist['value'];
$old_data = NULL;
-
- $same = false;
+
+ $same = false; // Flag to check if the same data exists
log_message('error', "$igr_no Save History function entered.");