Default save behaviour changed in latest baseline
Hi (@Justin_Workman @Shane_White )
We have a custom add-on that gives the possibility to open a request in a new tab from gridview: Open workitem in new tab from gridview — Cireson Community
When saving or cancel the request on the new tab it used to close the tab but know it instead redirects to "My work"
Anyone who knows what is changed in latest baseline when closing a request - it seems that the default behaviour has changed?
Best Answer
-
Konstantin_Slavin-Bo Customer Ninja IT Monkey ✭✭✭✭
I checked our history, and the code was added between v9.4.2 and v9.6.0, so it doesn't seem to be related to the PR76704 Shane mentioned, as that was introduced in v9.0.13. For more specfic info, you'll probably need someone at Cireson to pick-axe their commits:
git log -p -S'history.length == 1' -- Scripts/app/app.lib.js
0
Answers
The only thing I can remember along those lines is:
PR76704Portal redirects to the New Work Item page after creating a new work item
This fixed an issue where when you were finished it would take you back to the workitem/new page, rather than the page you were on before you open the IR.
What version did you upgrade from -> to?
Thanks,
Shane
9.4 something -> 10.2.3 (edited 😁)
Hmm thats a rather big jump, I will chat with the guys later and have a look at the code, but might be hard to find!
it's the same in our test system - but there it was only from 10.1 to 10.2.3 (i'm not totally sure if it was the same on 10.1 or first on 10.2.3)
No worries, we will have a look either way :-)
It is in C:\inetpub\CiresonPortal\Scripts\app\app.lib.js - line 1051/1052
When opening a new tab it always has a history length equal 1
Can you ask the guys if it has changed recently or it's a browser update that has made the diffence?
The function (look in the text for SHANE 😁 ):
Any news @Shane_White ? 🙂
The easy (ie unsupported) way would be to just add a parameter
?newTabOpener
to yourlinkValue
and then check for that parameter inapp.lib.js
😋@Konstantin_Slavin-Bo yes, or just change the event to window.close() 😁
Any news @Shane_White ?
@Mikkel_Madsen - I'm not sure if/when this changed, but I have no doubt it was to address some other issue. As you and @Konstantin_Slavin-Bo have pointed out there are custom ways around the "new behavior."
I checked our history, and the code was added between v9.4.2 and v9.6.0, so it doesn't seem to be related to the PR76704 Shane mentioned, as that was introduced in v9.0.13. For more specfic info, you'll probably need someone at Cireson to pick-axe their commits: