Commit graph

54 commits

Author SHA1 Message Date
Colin Kuskie
cab4e0bccd fix API docs for getLineage. joinClass takes 1 class only, as a string 2007-05-15 17:26:37 +00:00
Colin Kuskie
bd577a6712 Cache tests for getFirst- and getLastChild, hasChildren.
newByLineage tests, with cache
changed newByLineage to use placeholders
Coverage is 59/55/84
2007-04-15 04:30:55 +00:00
Colin Kuskie
450aab40a0 Some coverage tests for setRank. Added tests and a new folder
for getDescendantCount.
Pushed the reversal of order back into getLineage.  WGBP indentation.
2007-04-15 03:41:38 +00:00
Colin Kuskie
483daf6671 More rank swapping tests, cleaned up a bug in the tests that passed but should
not have.
Updated the POD in AssetLineage to show which methods alter the object's stored
lineage versus the information in the database.
2007-04-15 02:02:03 +00:00
Colin Kuskie
a7cb2133c9 10 tests for rank swap, promote and demote
changed promote and demote to use placeholders in AssetLineage.
Added explicit return values to demote
2007-04-14 01:50:11 +00:00
Colin Kuskie
c9e2a8b9f3 11 more AssetLineage tests for various rank methods.
Have setParent update self's parentId for persistent code.
2007-04-14 00:50:35 +00:00
Colin Kuskie
e894ed29ae Tests for getParent and getParentLineage
Fixed getParentLineage.  The regular expression only matched strings
that were 8 characters long.
2007-04-13 21:45:32 +00:00
Colin Kuskie
a548341aea More AssetLineage tests.
setParent does not clear the internally cached reference to
the parent Asset.  This makes persistent code get the wrong
Asset reference.
2007-04-13 21:01:15 +00:00
Colin Kuskie
9e4216c4a0 Add more AssetLineage tests.
cascadeLineage will crash because it does not check for duplicate lineages.
Removed a duplicate check for $newParent definedness in setParent.
2007-04-13 20:19:23 +00:00
Colin Kuskie
15c245b06a AssetLineage tests, and place holders for AssetLineage 2007-04-13 17:27:51 +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
Roy Johnson
30a0cda342 fix - lack of testing for valid object creation 2007-01-30 16:09:41 +00:00
JT Smith
528d9af4f6 fix: No closure 2007-01-26 03:17:42 +00:00
Frank Dillon
7a1f7b414b added statusToInclude flag in getLineage which allows you to filter assets by assetData.status. Completely backward compatible. 2007-01-21 16:48:52 +00:00
Doug Bell
cdaef9d5e3 Multiple fixes in the code Doug wrote for 7.3 - Calendar / DateTime / Event
- fix: Calendar now reports proper product ID on iCal feed
 - fix: Calendar now tries to use the feed ID when sending uid of event on iCal
        feeds (to prevent over-propagation of events shared between calendars).
 - fix: Bug in AssetLineage->getLineage documentation.
 - rfe: Event now has a template var to toggle if an event only lasts one day
 - rfe: WebGUI::DateTime->toMysql now automatically adjusts to UTC. NOTE:
        toMysqlDate and toMysqlTime do NOT adjust for timezones. If you are 
	using them you must adjust manually.
 - fix: Bug in WebGUI::DateTime documentation
 - fix: Calendar default date of "first event" or "last event" now works.
 - fix: Calendar now handles Events that have ' in titles appropriately.
 - rfe: Added a "dateSpan" Event template variable that will show a properly
        formatted date/time span depending on how the event's start and end are.
2006-12-23 02:22:02 +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
Doug Bell
d805a6a310 Additional features in preparation for final checkin of Calendar rewrite. 2006-12-01 22:26:09 +00:00
Drake
0d1c1ea96a Make Asset::getContainer no longer change the session asset. 2006-11-07 00:30:44 +00:00
JT Smith
aeba6ec83c merging 7.1.4 changes 2006-11-03 04:36:13 +00:00
Martin Kamerbeek
dc5d96dd5b Fixing lineage length bug 2006-10-13 14:17:08 +00:00
JT Smith
b7957742bc - fix: Username blank when editing user Visitor
- fix: Thread Count is off in the Collaboration system
 - Fixed an indexing problem with Product assets.
 - fix: Reply count off when restoring from trash
 - fix: Karma not spent properly
 - fix: Avatar Message Board Template Not Working
2006-06-01 17:40:15 +00:00
Matthew Wilson
50eebd27d8 slightly more strict test. 2006-05-19 01:15:19 +00:00
JT Smith
404749e32b updated thread templates to remove approve/deny links and add archive/unarchive links
fixed unarchive bug
changed post rating system to thumbs up/down
2006-04-15 15:36:02 +00:00
JT Smith
fd4453df58 added a sort alphabetically option to the folder asset 2006-04-14 02:35:35 +00:00
JT Smith
e2109910fd holy crap it actually works!!! import/export of themes base system is complete.
fixed some chunking related bugs in Session/Style
fixed other misc bugs
2006-04-13 03:31:39 +00:00
JT Smith
a7df0f7a55 fixing some bugs relaed to cs mail replies
fixed a bug in the user manager where the user would take on the username/alias of the visitor
fixed a bug in error handling where debug was being spewed for errors in approriately
2006-04-11 22:50:11 +00:00
JT Smith
5a7fedc731 - Added an option for hosters to limit the number of assets that may be
created on a WebGUI site.
fixed some bugs
2006-03-29 20:22:09 +00:00
Colin Kuskie
b32a94d4d0 forward port of MultiSearch docs and setParent privilege checks 2006-02-23 00:54:30 +00:00
Matthew Wilson
4a3121960f removal of dumpSession. 2006-01-26 05:39:16 +00:00
Matthew Wilson
f64ec77d8a fixing the ->param ->body distinction issue. 2006-01-23 05:18:54 +00:00
Matthew Wilson
6266be5b65 lots more fixes and enhanced User.t 2006-01-18 15:22:43 +00:00
Matthew Wilson
2069da5fdb tons of bug fixes. 2006-01-18 14:41:12 +00:00
Matthew Wilson
09483e18c5 a ton of $session fixes (thanks to Colin), and a new $session checker, that supposedly, shouldn't be needed now. It can be backed out, however, easily. 2006-01-16 22:45:21 +00:00
JT Smith
b0ffb721b6 more session related bug fixes 2006-01-15 18:34:44 +00:00
Matthew Wilson
65823b1f53 oodles of fixes. 2006-01-15 15:56:17 +00:00
Colin Kuskie
9ae593c7c9 clean-up from conversion 2006-01-13 00:35:01 +00:00
JT Smith
925906ca7e refactored WebGUI::Id to use new session api 2006-01-11 23:34:02 +00:00
JT Smith
9520b4ce48 migrating datetime api for session 2006-01-10 17:06:41 +00:00
JT Smith
a194408513 changing copyright year 2006-01-09 23:51:04 +00:00
JT Smith
d470a7cdd4 more session related changes 2006-01-09 20:43:02 +00:00
JT Smith
024514c549 more session related changes 2006-01-09 19:56:26 +00:00
JT Smith
d4b7f2ce59 first round of changes for the new session system 2005-12-31 21:54:06 +00:00
Matthew Wilson
f5f73c1681 - Converted all the max((assetData.)revisionDate) calls to use mysql5/(4.1)
nested queries.
 - fix [ 1323184 ] CS Submissions Not Sorting on multiple sites
 - fixed some major oversights in the new profile system.
2005-12-12 10:34:39 +00:00
Matthew Wilson
4aaf66a8a0 - fix [ 1344111 ] promote/demote swap with non-"published" assets 2005-12-12 05:43:00 +00:00
Colin Kuskie
1728e16cc5 fix typo in POD 2005-10-15 22:25:27 +00:00
JT Smith
7576dbfa78 fixed [ 1306912 ] CMS Matrix - Unable to approve article's 2005-10-13 19:04:05 +00:00
Colin Kuskie
b269fc2b30 remove duplicate definition subroutine 2005-10-06 04:35:51 +00:00
Wouter van Oijen
6be547e55a fix [ 1304940 ] Incorrect Spelling of Instantiate 2005-09-26 21:00:44 +00:00
JT Smith
ee1e7e870c performance enhancements 2005-09-19 18:38:44 +00:00