-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 13192 edit mode cleanup #13193
Merged
Merged
Changes from 2 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
78ec583
#13164 untested work
wezell 7f8352a
#13164 removes multitreefactory from hibernate, includes treefactory
wezell e662daa
#13164 removes tree from inode and category hibernate
wezell d28d16c
#13164 removing old code
wezell f5bdcff
core#13192 edit mode parsing
wezell df54dc4
#13192 edit mode parsing
wezell 04e14bb
#13192 contenttool
wezell 6fc9946
#13194 some untested fixes
wezell d43b9f6
#13194 use map.getOrDefault methods
wezell 68dc4bb
#13194 loadObjectResults
wezell 1e4e5d5
#13194 jenkins feedback fixes
wezell da94307
#13194 fixes the red
wezell 99a4771
Merge branch 'issue-13194-ConvertToPOJOUtil' into issue-13192-edit-mo…
wezell 4ae51f5
#13192 Container+Content Resource
wezell aaedc07
#13192 adding widget support
wezell 34e29db
#13192 adding widget support
wezell fcd43b4
#13192 container pulling
wezell 1b85a90
#13192 edit mode cleanup
wezell 8daeedb
Add lang variables and update edit contentlet save and cancel functio…
fmontes 52aec59
#13192 multitree updates
wezell c9454d6
#13192 multitree updates
wezell faec379
Merge branch 'issue-13192-edit-mode-cleanup' of github.com:dotCMS/cor…
wezell 6275d01
#13192 removing templatecontainers import
wezell 71ddeb9
#13192 removing templatecontainers from hibernate
wezell 3305052
#13192 allow multitree to be imported
wezell 5691eae
#13192 fixes import
wezell bbedf37
#13192 copying velocity work to new folder
wezell ebfd602
Update ContentSelector dojo widget to make it work with ng
fmontes 8fb2443
#13192 kinda running
wezell 6e1d7ff
#13192 look ma, no red
wezell fe2d0a1
Fix ContentSelector select event
fmontes 7f66ae5
Fix edit contentlet requires fields
fmontes 57bb803
#13192 live mode working
wezell 9f1c259
#13192 slow and steady
wezell 65bc6d3
Merge branch 'issue-13192-edit-mode-cleanup' of github.com:dotCMS/cor…
wezell 5a85e50
#13192 no red! ready to ship
wezell e8dac76
#13192 live mode
wezell 8a3e9a5
#13192 live mode working
wezell 4c03852
#13192 preview mode working exclaimation point
wezell bbe89a5
#13192 readding the integration tests
wezell b71662f
#13192 missing the multitree transformer
wezell c577cf1
#13192 ContainerResourceWorking
wezell f306c3f
#13192 merged
wezell a389484
Merge remote-tracking branch 'remotes/origin/master' into issue-13192…
jgambarios 7edc8d8
Merge remote-tracking branch 'remotes/origin/master' into issue-13192…
jgambarios 9f112aa
#13192 CloseDB aspect fixed
wezell cf5a3b5
Merge branch 'issue-13192-edit-mode-cleanup' of github.com:dotCMS/cor…
wezell 41246f7
#13192 unable to save pages
wezell 231fba4
#13192 white space cleanup
wezell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
import com.dotmarketing.tag.model.Tag; | ||
import com.dotmarketing.util.Config; | ||
import com.dotmarketing.util.Logger; | ||
import com.dotmarketing.util.PageMode; | ||
import com.dotmarketing.util.RegEX; | ||
import com.dotmarketing.util.RegExMatch; | ||
import com.dotmarketing.util.TagUtil; | ||
|
@@ -142,12 +143,8 @@ public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) | |
return; | ||
} | ||
if (RegEX.contains(url, mastRegEx)) { | ||
boolean ADMIN_MODE = (optSession != null | ||
&& optSession.getAttribute(com.dotmarketing.util.WebKeys.ADMIN_MODE_SESSION) | ||
!= null); | ||
boolean EDIT_MODE = ((optSession != null | ||
&& optSession.getAttribute(com.dotmarketing.util.WebKeys.EDIT_MODE_SESSION) | ||
!= null) && ADMIN_MODE); | ||
boolean ADMIN_MODE = PageMode.get(request) .isAdmin; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
boolean EDIT_MODE = PageMode.get(request) == PageMode.EDIT; | ||
|
||
Structure structure = null; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.