Skip to content

Commit 75b1543

Browse files
fix: e2e testcase error
1 parent 01e1051 commit 75b1543

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

includes/admin/feedzy-rss-feeds-import.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -755,24 +755,22 @@ public function manage_feedzy_import_columns( $column, $post_id ) {
755755
* @access private
756756
*/
757757
private function get_last_run_details( $post_id ) {
758-
$msg = '';
759-
$import_errors = get_post_meta( $post_id, 'import_errors', true );
760-
$status = array(
758+
$msg = '';
759+
$import_info = get_post_meta( $post_id, 'import_info', true );
760+
$status = array(
761761
'total' => '-',
762762
'items' => '-',
763763
'duplicates' => '-',
764764
'cumulative' => '-',
765765
);
766-
$import_info = false;
767-
if ( $import_errors ) {
768-
$import_info = get_post_meta( $post_id, 'import_info', true );
769-
$status = array(
766+
if ( $import_info ) {
767+
$status = array(
770768
'total' => 0,
771769
'items' => 0,
772770
'duplicates' => 0,
773771
'cumulative' => 0,
774772
);
775-
$status = $this->get_complete_import_status( $post_id );
773+
$status = $this->get_complete_import_status( $post_id );
776774
}
777775

778776
// link to the posts listing for this job.

0 commit comments

Comments
 (0)