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

Invoice cache uses language of current user

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      To reproduce:

      • Install additional language
      • Create client that uses new language
      • Create an invoice for the client
      • View the invoice through the admin interface
      • Login with the client account (not through the admin action)
      • View the invoice
      • See that it uses the admin language instead of the client language

      I think perhaps we should not cache the language, should cache in the client's language, or should not cache at all when the admin views the invoice.

        Activity

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.2.0 Sprint 3 [ 140 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Description To reproduce:
        * Install additional language
        * Create client that uses new language
        * Create an invoice for the client
        * View the invoice through the admin interface
        * Login with the client account (not through the admin action)
        * View the invoice
        * See that it uses the admin language instead of the client language

        I think perhaps we should not cache the language or maybe we shouldn't cache when the admin views the invoice.
        To reproduce:
        * Install additional language
        * Create client that uses new language
        * Create an invoice for the client
        * View the invoice through the admin interface
        * Login with the client account (not through the admin action)
        * View the invoice
        * See that it uses the admin language instead of the client language

        I think perhaps we should not cache the language, should cache in the client's language, or maybe we shouldn't cache when the admin views the invoice.
        jonathan Jonathan Reissmueller made changes -
        Description To reproduce:
        * Install additional language
        * Create client that uses new language
        * Create an invoice for the client
        * View the invoice through the admin interface
        * Login with the client account (not through the admin action)
        * View the invoice
        * See that it uses the admin language instead of the client language

        I think perhaps we should not cache the language, should cache in the client's language, or maybe we shouldn't cache when the admin views the invoice.
        To reproduce:
        * Install additional language
        * Create client that uses new language
        * Create an invoice for the client
        * View the invoice through the admin interface
        * Login with the client account (not through the admin action)
        * View the invoice
        * See that it uses the admin language instead of the client language

        I think perhaps we should not cache the language, should cache in the client's language, or should not cache at all when the admin views the invoice.
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 3 hours, 37 minutes [ 13020 ]
        Worklog Id 15189 [ 15189 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Time Spent 3 hours, 37 minutes [ 13020 ] 3 hours, 54 minutes [ 14040 ]
        Worklog Id 15196 [ 15196 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              23/Sep/21

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 3 hours, 54 minutes
              3h 54m

                Agile