Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71394

PHP8: All new blog entries appear to be in the draft state by default

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.11
    • 3.11
    • Blog

    Description

      There were several blogs-related behat failures on PHP8 and I traced them down to the fact that in PHP8 by default the "Publish to" field equals to "Yourself (draft)", where in PHP7 it is set to "Anyone on the site"

      This seems to be the same issue as MDL-70966

      var_dump('site' == 0);
      

      results in:

      Output for 8.0.0 - 8.0.3
          bool(false)
      Output for 7.3.0 - 7.3.27, 7.4.0 - 7.4.16
          bool(true)
      

      See https://3v4l.org/3qVO3

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Paul Holden Paul Holden
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 6 minutes
                  1h 6m