Unable to set status

Created on 13 March 2025, about 1 month ago

Problem/Motivation

I am unable to set a content item's Published status using CSV Importer.

Following https://www.drupal.org/docs/contributed-modules/csv-importer/examples#st... , I have tried adding a status column to my CSV file, yet no matter whether a 0 or a 1 is included in that column, when I run CSV Importer on the CSV file, the created content items' status is always set to 1 (i.e., published)

The site I'm working on is running Drupal 11.1.3 .

Steps to reproduce

  • Create a new "Widget" Content Type. Don't add any additional fields to it.
  • Create bug-demonstration.csv with the following contents:
    nid,title,status
    100,Unpublished Widget,0
    101,Published Widget,1
      
  • Go to /admin/content/csv-importer, select Content > Widget, and upload bug-demonstration.csv. Run CSV Importer.
  • Go to /admin/content?title=&type=widget&status=All. Observe that the status of both Unpublished Widget and Published Widget is "Published"
🐛 Bug report
Status

Active

Version

2.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024