Giter Site home page Giter Site logo

Running the 'Elevated Unlock' is always executed in the User language and not in the content language of the item currently edited about console HOT 5 CLOSED

Cbauwens avatar Cbauwens commented on June 23, 2024
Running the 'Elevated Unlock' is always executed in the User language and not in the content language of the item currently edited

from console.

Comments (5)

Cbauwens avatar Cbauwens commented on June 23, 2024

Hi,

I noticed that when running the 'Elevated Unlock' the actual 'Unlock-Item' command (/sitecore/system/Modules/PowerShell/Script Library/SPE/Tools/Security Management/Development/Unlock Item) is always executed in the "en" language and not in the content language of the item on that moment.

I was able to fix it by replacing "Get-Item -Path "." | Unlock-Item" with "Get-Item -Path "." -Language $SitecoreContextItem.Language.Name | Unlock-Item"

We are currently running on a Sitecore 10.3 (XM version that was upgraded from a Sitecore 9.1 Update-1 XM) and using version 6.4 of the powershell module

from console.

michaellwest avatar michaellwest commented on June 23, 2024

Does it work as expected if you did this?

$SitecoreContextItem | Unlock-Item

from console.

Cbauwens avatar Cbauwens commented on June 23, 2024

yes, using "$SitecoreContextItem | Unlock-Item" also works fine.
Might be even better because you don't need to retrieve the item again via the "Get-Item" command ?

from console.

michaellwest avatar michaellwest commented on June 23, 2024

Great. Thank you for confirming.

from console.

AdamNaj avatar AdamNaj commented on June 23, 2024

Fixed as part of #1226

from console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.