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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.11
    • Fix Version/s: 3.11
    • Component/s: Blog
    • Labels:

      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

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              Paul Holden Paul Holden
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              CiBoT CiBoT
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                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