Skip to content

Commit 396acfb

Browse files
fix #311 by making it a notice instead of an error
1 parent 2161618 commit 396acfb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

classes/salesforce_push.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,11 @@ private function salesforce_push_object_crud( $object_type, $object, $sf_sync_tr
523523
break;
524524
}
525525

526-
$title = sprintf(
527-
// translators: placeholders are: 1) the name of the current operation, 2) the name of the WordPress object type, 3) the name of the WordPress ID field, 4) the value of the object's ID in WordPress, 5) the name of the Salesforce object
528-
esc_html__( 'Error: %1$s Salesforce %5$s with WordPress %2$s with %3$s of %4$s was not allowed by this fieldmap.', 'object-sync-for-salesforce' ),
526+
$log_status = 'notice';
527+
$title = sprintf(
528+
// translators: placeholders are: 1) the log status, capitalized, 2) the name of the current operation, 3) the name of the WordPress object type, 4) the name of the WordPress ID field, 5) the value of the object's ID in WordPress, 6) the name of the Salesforce object
529+
esc_html__( '%1$s: %2$s Salesforce %3$s with WordPress %4$s with %5$s of %6$s was not allowed by this fieldmap.', 'object-sync-for-salesforce' ),
530+
ucfirst( esc_attr( $log_status ) ),
529531
esc_attr( $op ),
530532
esc_attr( $mapping['wordpress_object'] ),
531533
esc_attr( $wordpress_id_field_name ),
@@ -538,7 +540,7 @@ private function salesforce_push_object_crud( $object_type, $object, $sf_sync_tr
538540
'message' => '',
539541
'trigger' => $sf_sync_trigger,
540542
'parent' => esc_attr( $object[ $wordpress_id_field_name ] ),
541-
'status' => 'error',
543+
'status' => $log_status,
542544
);
543545
if ( '' !== $op ) {
544546
$logging->setup( $result );

0 commit comments

Comments
 (0)