Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1819

Manually running cron does not do so for the current company

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-b2
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      When running a cron task manually via URL with cron key, a company ID should also be passed via GET to run the task for a specific company. Otherwise, the company the task will run for will be derived from the current hostname, or be the first company from the list of all companies.

      This task should allow a GET parameter to specify the company ID to run via cron.


      I am noticing that with multiple companies enabled, running the cron manually as staff for a single cron task will still run the cron for the company determined by the current hostname rather than the current company the staff is logged in to.

      AppController::getCompany appears to be where the company is determined.
      Staff session info was:
      >blesta_company_id|s:1:"2";blesta_id|s:1:"1";ip|s:12:"123.456.78.9";blesta_staff_id|s:1:"1";

      "blesta_company_id" was "2", but the cron was run for company "1" instead.

      FYI, the staff was logged in at company "1"'s hostname, but had used the selector in the header to switch to the other company before running the cron.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/Oct/15

              Agile