Commit graph

101 commits

Author SHA1 Message Date
Colin Kuskie
a9f46c7443 More wg8 constructors in AssetVersioning. 2010-02-04 15:31:43 -08:00
Colin Kuskie
d66b3b891b Make revisedBy a property, so it gets written on ->update. Change addRev not to write to the db when it does not need to. Update tests to verify that addRev does the right thing for tagId and revisedBy. 2010-01-25 22:49:22 -08:00
Colin Kuskie
451eb33f0f Fix requestAutoCommit. All tests in t/Asset/Asset.t passing. 2010-01-22 15:10:23 -08:00
Colin Kuskie
8b52d3ff76 rework addRevision to work with Moose. 2010-01-15 16:59:01 -08:00
Colin Kuskie
1331bf9828 Remove more instances of direct hash access for properties. 2010-01-14 10:31:38 -08:00
Colin Kuskie
bf097ac337 Since assets are always created with defaults now, no need to introspect. Also, remove white space in "empty" lines. 2010-01-13 11:15:25 -08:00
Colin Kuskie
a8f251a5f2 Sessionize addRevision 2010-01-13 10:31:22 -08:00
Colin Kuskie
ce3edcf743 Move get_tables from Meta/Class into Meta/Asset. s/getTables/meta->get_tables/; 2010-01-04 15:34:24 -08:00
JT Smith
377c49d141 fixed a bunch of bugs...almost working 2009-10-23 11:07:02 -05:00
JT Smith
3938f9ff0d removed last remnants of old definition 2009-10-22 17:00:45 -05:00
Colin Kuskie
18a52b9aa2 Refactor out the JSON collateral code from FilePump/Bundle.pm to make an aspect
that can be used by assets, operations and any other modules in WebGUI.
2009-08-26 15:42:18 +00:00
Colin Kuskie
b7358fbceb Forward port fix for updating property cache on editSave with autoCommit
so that the asset does not lie about its autocommit status.
2009-07-08 04:29:27 +00:00
Colin Kuskie
f0eaa51d3a If adding an asset is added to another asset with an open version tag, put the
new asset in that version tag, too.
2009-06-23 19:32:40 +00:00
Colin Kuskie
61b4e1e826 Never delete an asset property key. 2009-06-20 00:16:34 +00:00
Colin Kuskie
b9b7066a1d Update local property cache when performing version tag operations an $self. 2009-06-19 18:20:14 +00:00
Doug Bell
1d6831d055 merged 10739 2009-05-13 02:02:31 +00:00
Doug Bell
7a1d96f752 fix bug with packed extra head tags 2009-05-07 17:27:56 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
1c8dbfe5b4 fix POD related to asset mixin classes, Asset*.pm 2008-11-24 22:22:39 +00:00
Kaleb Murphy
d9c050423f When you move an asset to a new version, only the current version is moved, instead of all of them. 2008-11-12 15:51:23 +00:00
Doug Bell
c7e2a131b3 rfe: Add Edit button to Manage Revisions page 2008-09-16 22:00:49 +00:00
Frank Dillon
58f231c87b Better info for Assets that require commit before adding children. Add link is always availiable now, an error message is displayed if you try to post a child to an uncommitted parent. Additionally a new method was added to AssetVersionion.pm to determine whether or not an asset has been committed. 2008-09-16 20:08:15 +00:00
Colin Kuskie
847fcfcef3 rfe: add url column to assetHistory table 2008-09-15 16:46:06 +00:00
Colin Kuskie
c6e9d322a8 Fix how update and addRevision handle defaults from the definition subroutine
when it returns an array ref.
2008-08-19 22:03:39 +00:00
JT Smith
844f3b14ae forgot to check for undef in properties 2008-08-14 21:32:02 +00:00
JT Smith
824c789f71 - Changed update() so that it only updates fields passed in, and the defaults
for assets are processed in addRevision() instead.
 - Changed update() so it can autodetect missing fields in asset tables and 
   log them nicely instead of crashing.
2008-08-14 21:21:31 +00:00
Doug Bell
ab0b1b2200 - add: Move revisions from one version tag to another
- add: Delete multiple revisions from a version tag at the same time
 - add: Approval activities now have a better parent class and more 
        flexibility (multiple groups to approve, do on approve)
 - fix: weirdness in upgrade file
2008-05-20 03:10:50 +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
5222ad6be1 merged with SVN HEAD 2007-12-18 12:22:37 +00:00
Doug Bell
82e9bf8448 Finished? Ready for merge at least. 2007-12-17 22:22:06 +00:00
Doug Bell
fb33859cc6 fix: when upgrading, two revisions of same asset in same second broke upgrade 2007-12-13 20:13:27 +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
f8781fede9 setHelp not used anymore, clean up tests 2007-09-21 02:30:12 +00:00
JT Smith
1e9e4d810f fix: purge old asset revisions could purge the most recent revision if the
database had some referential integrity probems
2007-07-30 18:41:39 +00:00
JT Smith
350d7f6e01 - api: You may now use a displayOnly attribute in your asset properties list
that will display a field, but is not settable via the update() method.
 - api: You may now use a customDrawMethod attribute in your asset properties
   list that will enable you to add custom display options for that fields when
   the edit form is automatically generated.
 - Added file attachments to the Wiki.
 - Added a new attachments form control.
 - Added a form control skeleton.
2007-07-25 22:22:49 +00:00
Graham Knop
75d9a3f08a Allow editing previous revisions of assets in the current version tag 2007-07-24 19:15:23 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
Colin Kuskie
ec569fdd6a make getRevision return revisions in order or revisionDate 2007-03-12 03:06:47 +00:00
JT Smith
f43fb782f4 - Changed Manage Revisions screen to order revisions by descending revision
date.
2007-03-08 17:19:00 +00:00
JT Smith
e594cb3d6c - Fixed a problem where you couldn't upgrade directly to 7.3.9 from versions
earlier than 7.3.8.
2007-02-15 23:27:09 +00:00
Frank Dillon
52e413ad71 added skipNotification flag to addRevision method 2007-02-02 21:24:29 +00:00
Doug Bell
6e8547169a fixed changelog and some formatting issues 2007-02-01 20:24:00 +00:00
Colin Kuskie
fe39696e79 fixing whitespace issues with POD 2007-02-01 17:13:41 +00:00
Doug Bell
d6be45a1c0 Updated docs for AssetVersioning, WebGUI::DateTime
Added some Help/i18n for Calendar
Fixed some Asset::Event formatting issues
Step one in fixing AssetExportHtml
2007-02-01 16:36:48 +00:00
JT Smith
02622ea55c - fix: notifications from postings
- Refactored the autocommit system to fix the notifications bug above.
2007-01-17 21:34:49 +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
JT Smith
eb580be7f1 removing the autocommit jury rig that posts and wikipage's were using 2006-12-06 17:35:36 +00:00
JT Smith
5800dc1596 very close now 2006-12-05 02:14:11 +00:00