Commit graph

95 commits

Author SHA1 Message Date
Colin Kuskie
6b1fde7038 Log an error if duplicate cannot make a copy of itself. 2009-09-05 09:59:53 -07:00
Colin Kuskie
92815bb75d Change www_delete and www_cut to use either the container, or the parent
as the asset to return the user to after their actions.
Subclass getContainer in the Story, and alias it to getArchive.
Fixes bug 10657.
2009-08-14 19:43:14 +00:00
Graham Knop
2ab07179bd fixed: Only users in 'Content Managers' can create shortcuts 2009-08-11 16:31:33 +00:00
Colin Kuskie
9a6d5d6eb0 Add CSRF token to manage clipboard screen. 2009-07-17 18:09:49 +00:00
Colin Kuskie
60c74a2a58 Fix pasting from the AdminBar macro due to CSRF requirements. 2009-07-14 23:39:14 +00:00
Colin Kuskie
5e4db3adb4 Provide a framework for CSRF protection, with tests.
Add CSRF protection to Asset editSave, AssetManager, VersionTags and Group operations.
2009-07-06 16:58:57 +00:00
Colin Kuskie
fb38e45343 Mark www_paste as deprecated. 2009-06-19 00:59:10 +00:00
Colin Kuskie
5bcd1a7fc4 Fix poor i18n code, and add notifications about assets that are skipped to the paste progress bar. 2009-06-19 00:04:39 +00:00
Colin Kuskie
db49a54e28 i18n the clipboard pasting progress bar data. 2009-06-18 23:40:41 +00:00
JT Smith
0a004d72a0 spew forth more data! 2009-06-18 22:36:42 +00:00
Colin Kuskie
156025d03c Tell Content/Asset that the paste status method did a redirect. 2009-06-18 20:37:45 +00:00
Colin Kuskie
fb6b201e77 Make it work with debug mode turned on. 2009-06-18 20:16:14 +00:00
Colin Kuskie
8be0a5c734 Add a progress bar for long running ops. First implementation is
with paste.  Also fix bugs with redirecting from the admin bar back to a
page instead of staying in the Asset Manager.
2009-06-18 19:39:35 +00:00
Colin Kuskie
4320d39b1c Pasting from the AdminBar in the AssetManager should leave you in the manager. 2009-06-17 15:38:08 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
99d6796675 Prevent Event, WikiPage and Thread from being pasted places where they don't
belong.  This allows chained method calls to "getMyParent", getParent, getWiki, getCalendar, etc.
to work.
Adds the new canPaste and validParent method to Asset and AssetClipboard.
2009-02-03 04:43:11 +00:00
Colin Kuskie
101e95fd63 Prevent Wiki Pages from being pasted to anywhere but a Wiki Master.
Add provisions for other assets to behave similarly.
2009-01-30 23:49:19 +00:00
Colin Kuskie
b4db7e4391 Prevent redirects from happening when cutting images and files. 2009-01-22 21:22:55 +00:00
Colin Kuskie
1c8dbfe5b4 fix POD related to asset mixin classes, Asset*.pm 2008-11-24 22:22:39 +00:00
Graham Knop
26790fd1dd fix some issues with autocommit 2008-10-23 10:20:53 +00:00
Graham Knop
99a9da626d rfe #640: Refactored autocommit and autocomment
Autocommit assets like CS posts or Calendar Events can now be added before the
parent is committed.  They will go into the same version tag as their parent.
2008-10-22 16:04:10 +00:00
Graham Knop
fe07152853 fixed #8776: duplicate does not duplicate keywords 2008-10-09 14:34:45 +00:00
JT Smith
ef120fb06b Added isVisitor, isAdmin, and isRegistered methods to User object instead
of hard coding checks everywhere with group ids. And updated the code base 
   to match.
2008-09-16 22:32:36 +00:00
Colin Kuskie
24339ba1e2 internationalize word copy in clipboard copies 2008-09-16 20:14:06 +00:00
Colin Kuskie
578d28537a op=manageAssets => op=assetManager 2008-06-12 04:44:15 +00:00
Graham Knop
5b78160079 fixed: Creating a shortcut creates a version tag even with autocommit turned on 2008-06-11 19:17:28 +00:00
Doug Bell
f3996eb316 Complete asset manager rewrite. 2008-05-26 22:07:16 +00:00
Graham Knop
cb6a1c94c4 fixed: Clipboard select all doesn't work with one item in IE 2008-04-09 22:27:30 +00:00
Graham Knop
35bfeac0ef fixed: Wiki attachments uploaded by non-Content Managers deleted by maintenance workflow
fixed: Non-Content managers unable to paste assets even with edit privileges
2008-04-01 14:42:11 +00:00
Graham Knop
72b8e1d630 fixed: Able to cut or trash system assets 2008-03-24 09:43:20 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fb434a8b3a fix: content handler and redirects 2008-01-25 01:36:14 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Doug Bell
ac1a7dc3a3 fix: CS posts get re-ordered when copy/paste 2007-12-13 17:26:28 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Graham Knop
d42f568456 fix: Copy operations create version tags even with auto-commit turned on 2007-11-15 08:23:54 +00:00
Graham Knop
f8781fede9 setHelp not used anymore, clean up tests 2007-09-21 02:30:12 +00:00
Graham Knop
27b3a4d644 Add indicator to trash and clipboard for assets with children 2007-07-31 16:38:29 +00:00
James Tolley
f33e7533f4 copy asset pop-up menu 2007-07-11 00:07:17 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
Graham Knop
a0522d4d29 fix: Copying threads, posts, or wiki pages creates inactive version tag 2007-05-21 12:50:44 +00:00
Martin Kamerbeek
52911b42d5 Let paste also index the descendants of the asset to be pasted. 2007-05-02 14:19:26 +00:00
Martin Kamerbeek
dc642f80ba Fixed Asset tree cut and paste not handled by search 2007-05-02 12:04:15 +00:00
Colin Kuskie
f8c0cb1041 s/descendent/descendant/msg when calling getLineage 2007-03-13 19:45:38 +00:00
Colin Kuskie
c3052fcd67 1) Fixed a bad module name that prevented the updated WeatherData from running.
2) Heavy refactor of getAssetsInClipboard to make it use getLineage instead of
custom SQL.

Made Workflow/Activity/TrashClipboard use the same method.

Updated getLineage so that the whereClause key must not only exist, but actually
have something in it.  Otherwise it generates an empty pair of parens, which is
a SQL error.
2007-03-05 17:47:30 +00:00
Colin Kuskie
e1c69f91d9 fix display of assets in clipboard that cannot be trashed 2007-03-03 22:25:36 +00:00
Colin Kuskie
fcaf782f5b ODBC dsns need long lengths like Oracle 2007-03-01 23:27:24 +00:00
JT Smith
b92da4afab Asset->get should return a copy of the properties hashref 2007-01-29 17:53:56 +00:00
JT Smith
f94791fed0 fixed a duplicate bug where the original asset would get trashed 2007-01-26 04:50:33 +00:00
JT Smith
430583ef1c fixed a couple of bugs with the new autocommit functionality for cs posts and the like 2006-12-07 00:17:54 +00:00