Closed (fixed)
Project:
Hosting
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2018 at 21:21 UTC
Updated:
8 Mar 2018 at 19:29 UTC
Jump to comment: Most recent
I stumbled across this when trying to make sure we don't allow editing a platform/site git fields if a verify task is running or queued.
function hosting_task_outstanding() is used as if it is checking for any task that isn't completed (success or fail). It's actually only checking for queued tasks.
It is used to hide the other tasks (using menu access callback) when a site "delete" task is running. You may have noticed, it hides the other tasks when the task is queued, and when the task is complete, but while it is running, all other tasks appear available.
See screenshot:

| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot from 2018-02-15 16-18-21.png | 56.58 KB | jon pugh |
Comments
Comment #2
jon pughComment #4
helmo commentedComment #6
helmo commentedmerged