a duck

Results 13 comments of a duck

Hm, I just run any script from the SPE module, like Find all Powershell commands: ![image](https://user-images.githubusercontent.com/13121503/157593425-7deefc54-f284-4db2-9858-03ed96b73ca3.png)

From what I can tell after decompiling, `item.ChangeTemplate()` calls `TemplateManager.ChangeTemplate(item, oldTemplate.GetTemplateChangeList(newTemplate))` instead of `TemplateManager.ChangeTemplate(item, new TemplateChangeList(oldTemplate, newTemplate))`. Seems like that method performs an additional loop through the item's field list...

Hm, you're not updating the parameter for TemplateManager.ChangeTemplate in your latest change for SetItemTemplateCommand.cs in line 108? > Thinking about it further, you should be able to explicitly get the...

Haha true, then you should include in the documentation that fields copied over when the -FieldsToCopy flag is used will only be by ID, since Sitecore UI does it by...

> I don't see in the code where Sitecore is grabbing all languages. Yeah, it's quite convulted, I think it's the method `Sitecore.Data.DataProviders.Sql.SqlDataProvider.ChangeTemplate(ItemDefinition itemDefinition, TemplateChangeList changeList, CallContext context)` that eventually...

> Would you say that the current implementation causes data loss unexpectedly? IMO, using `new TemplateChangeList(oldTemplate, newTemplate)` results in no data loss, as there's no field values marked for deletion....

Like these yellow clickable links: ![Image](https://user-images.githubusercontent.com/13121503/202749114-1366c822-682c-4e93-9328-96487566993b.png) So it'll be great if I can do something like `Display-Url -Path "/test.txt" -Download` or similar to allow it to be clickable in console,...

Hmm.. so is it just my system that's not working? :( ![image](https://user-images.githubusercontent.com/13121503/202981967-38c2c175-f1e6-4139-a5e7-7da2b4fa70e1.png)

Nice. While we are at it, is it possible to use the current ISE language when clicking on the ID link? ![image](https://user-images.githubusercontent.com/13121503/205008638-c389ad2c-e25b-4379-ba5f-4f08c5dc57f8.png) e.g. `item:load(id={B82B0E53-3EB6-4AA6-9E39-60BE22426E02},language=en-GB)`

Ok, I think I managed to replicate the issue on different environments. Basically I have password protection using basic auth on my site via this module https://github.com/nabehiro/HttpAuthModule I have parts...