Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-16388

Edit PR for Closed Branch

    XMLWordPrintable

Details

    Description

      Setup:
      This happened on two of our repositories, a web and server. A PR was created with the same branch, one to master and one to sprint-development. I merged the PR for sprint-development, checking the box to close the source branch. Then I went to the PR for master, to edit and close it.

      What should happen: The edit page loads and I can edit the PR (or delete it).

      What happens: The Edit PR page does not load. Script error, possibly related to the closed branch. I attached an image as well.

      This text is in my web console:

      #!script
      
      Uncaught TypeError: Cannot read property 'split' of null
          at t.default (parse-compare-spec.js?b510:4)
          at e (edit.js:255)
          at e.Router.<anonymous> (edit.js:281)
          at e.Router.<anonymous> (index.js:7363)
          at o (director.js?a3c1:517)
          at n (director.js?a3c1:298)
          at e.Router.d.invoke (director.js?a3c1:522)
          at r (director.js?a3c1:480)
          at e.Router.d.dispatch (director.js?a3c1:492)
          at e.Router.handler (director.js?a3c1:186)
          at e.Router.d.init (director.js?a3c1:214)
          at Object.2373 (pullrequests.js:44)
          at t (bootstrap 948dbc3907e46080132c?fe14:52)
          at Object.2880 (pullrequests.js:12602)
          at t (bootstrap 948dbc3907e46080132c?fe14:52)
          at window.webpackJsonp (bootstrap 948dbc3907e46080132c?fe14:23)
          at pullrequests.js:1
      33:17 Uncaught TypeError: Cannot read property &#x27;split&#x27; of null
          at t.default (parse-compare-spec.js?b510:4)
          at HTMLDivElement.e (edit.js:255)
          at HTMLDivElement.dispatch (jquery.js:4435)
          at HTMLDivElement.g.handle (jquery.js:4121)
          at Object.trigger (jquery.js:4350)
          at Object.e.event.trigger (jquery-migrate.js:493)
          at HTMLSelectElement.<anonymous> (jquery.js:4901)
          at Function.each (jquery.js:374)
          at e.fn.init.each (jquery.js:139)
          at e.fn.init.trigger (jquery.js:4900)
          at e.fn.init.re.fn.(anonymous function) [as change] (https://d301sr5gafysq2.cloudfront.net/65291d157f0b/dist/webpack/common.js:129:26122)
          at HTMLDivElement.<anonymous> (compare.js?087a:88)
          at Function.each (jquery.js:374)
          at e.fn.init.each (jquery.js:139)
          at t.default (compare.js?087a:60)
          at HTMLDivElement.<anonymous> (module-registry.js?66f1:40)
          at Function.each (jquery.js:374)
          at e.fn.init.each (jquery.js:139)
          at i (module-registry.js?66f1:12)
          at n.<anonymous> (module-registry.js?66f1:60)
          at c (backbone.js:207)
          at n.trigger (backbone.js:148)
          at HTMLDocument.<anonymous> (module-registry.js?66f1:69)
          at c (jquery.js:3099)
          at Object.fireWith [as resolveWith] (jquery.js:3211)
          at Function.ready (jquery.js:3417)
          at HTMLDocument.c (jquery.js:3433)
          at HTMLDocument.n (raven.js?ae06:314)
          at HTMLDocument.nrWrapper (33:17)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            248877c15b5e Clay Himmelberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: