Commit graph

4388 commits

Author SHA1 Message Date
Drake
565119fa1a Multiple changes:
- Shift ProfileField API so that new returns undef on invalid fields.
    This makes it possible for Shortcut::www_saveUserPrefs to execute.
    The class methods in ProfileField are now also actually class methods.

    + Also fix up other modules that created dummy ProfileFields so that
      they don't need to do that anymore, because it's now invalid.

  - Merge contradictory-looking code from Shortcut's view and www_view
    into a reasonable compromise in view, and then have www_view call
    $self->view in a manner similar to that of the default Asset::view.

    + The profile field overrides still don't work, because there's no
      obvious mechanism for "transclude asset in context".  This may
      require some fiddling to get right...
2006-08-31 00:14:56 +00:00
Colin Kuskie
84e8d8f689 remove old discussion template variables from Article template docs 2006-08-30 16:38:32 +00:00
Drake
a02f17c887 Multiple fixes:
- Shortcuts that are dashlets no longer mysteriously mutate into
    their parents.
  - Saving edits to dashlet preferences no longer kicks you out of
    your version tag.
2006-08-30 05:19:23 +00:00
Colin Kuskie
be7b5c38a9 1 getUrl was missed 2006-08-29 17:27:09 +00:00
Drake
aac32d24bd Multiple enhancements:
- Perform RFE "js-confirmation-operation/user.pm".
  - Perform RFE "js-confirmation-operation/group.pm".
  - Perform RFE "locked-by-who".
    (Displays in title and alt of img, but not in body text.)
2006-08-29 16:49:25 +00:00
Drake
936054ba19 Multiple fixes:
- Probably fix "more-geturl-bugs", but hard to verify.
  - Fix "last-modified-problem", approximately.  (Difficult or impossible
    in the general case for externally-retrieved content.)
  - Fix "rss-syndication".
  - Fix unnamed bug where Database caches would try to Storable::freeze
    non-references and thereby crash.
  - Fix "apache-version-component-in-wrong-place".
2006-08-29 16:44:41 +00:00
Martin Kamerbeek
48a01cc878 fix: Matrix 'Can instantiate template' 2006-08-29 13:12:05 +00:00
Martin Kamerbeek
50e8b14789 Fix: extra elements (tags) do not show up in HTML source 2006-08-29 11:33:09 +00:00
Martin Kamerbeek
3b9f541bd0 Fixed some issues with the override form in the Shortcut 2006-08-29 10:48:33 +00:00
Martin Kamerbeek
d22e96216e Fixed a bug in the Layout where it didnot inherit the layout template of its parent 2006-08-28 15:16:29 +00:00
Roy Johnson
c7a4c73e6b Changed behavior of Image assets when admin mode is on so that browsing to an images url no longer takes you to the assets edit screen, but rather to the image it's self. 2006-08-27 18:55:14 +00:00
Wouter van Oijen
abc0f1d91f More getUrl() bugfixes 2006-08-25 11:47:51 +00:00
Wouter van Oijen
28ab680073 XHTML compliance 2006-08-25 11:41:29 +00:00
Wouter van Oijen
fa3c90e586 fix: Add event does not work WebGUI 7.0.5 in combination with Proxy Caching turned off 2006-08-25 11:36:08 +00:00
Martin Kamerbeek
6bf4e91d1a Fixed some SQLForm bugs 2006-08-20 13:23:12 +00:00
Martin Kamerbeek
f7654c83d6 fix: sqlform trunctate search results doesn't work 2006-08-18 13:08:22 +00:00
JT Smith
35db285a67 - rfe: Workflow activity for assigning users to a group
- The prevent proxy cache setting also now sets anti-caching meta tags and
   HTTP headers.
2006-08-16 22:04:59 +00:00
Roy Johnson
7122e069e6 fix getMedia asset constructor returns wrong object type. Test Suite++ =) 2006-08-16 21:30:49 +00:00
JT Smith
80ef5e925a - Made some changes to make WebGUI compatible with the WRE for Windows.
- fix: cacheTimeout not respected as Visitor (Eric Kennedy).
 - fix: Email address with just one character in the user part not accepted
 - fix: Image (file) added to page shows before committing changes
 - fix: Typo in fileImport.pl at line 265 (zxp)
2006-08-16 21:25:27 +00:00
Colin Kuskie
1c39cf6bf9 fix missing semicolon in macro doc 2006-08-16 17:23:42 +00:00
Frank Dillon
1d29eebca3 syntax fix 2006-08-16 00:03:46 +00:00
Frank Dillon
dd89a88cc7 2006-08-15 23:55:26 +00:00
Colin Kuskie
018ea2912c fix typo in Form/Date language code 2006-08-15 17:30:30 +00:00
Colin Kuskie
ca272c35a5 another doc fix, missing semicolons in macro doc 2006-08-11 15:29:04 +00:00
Colin Kuskie
43240215c9 fix typo in docs 2006-08-11 15:06:09 +00:00
Len Kranendonk
049eb6f8ff RFE: By default Search results need to match ALL keywords 2006-08-11 09:55:20 +00:00
Frank Dillon
1b0c8da592 added cookieTTL method which returns the time to live of cookies set in the config file. 2006-08-09 23:11:16 +00:00
Frank Dillon
05c8cad17a fix syntax error 2006-08-09 23:09:51 +00:00
Frank Dillon
11c13609fc Pull cookie time to live from config file 2006-08-09 23:05:58 +00:00
Colin Kuskie
b3678c6795 fix bad minute spec in Session/DateTime/epochToHttp. Add tests to cover 2006-08-09 20:06:19 +00:00
JT Smith
dfe92a73e2 preparing for 7.0.5 release
fixed some bugs
2006-08-09 16:09:17 +00:00
Roy Johnson
8576802abe Rollback 2006-08-09 13:22:34 +00:00
Roy Johnson
b7749551f8 fix - Search does only returns recent results 2006-08-09 12:53:24 +00:00
Colin Kuskie
000b2fcce3 Reverting previous work. Asset->new must return an Asset, even if
no className is passed and the invocant's class is Asset.  This is
due to the root.  In the db, the root Asset has the className WebGUI::Asset,
and the getRoot method matches this.
Changed the failing test in Asset.t to look for a WebGUI::Asset to be returned.
Added two tests to Asset.t to validate the object returned by Asset->getRoot method.
Reverted previous work and updated the POD for Asset->new.
2006-08-08 17:43:44 +00:00
JT Smith
c956ba3969 - Added an option to override the session cookie domain.
- fix: Search results not showing synopses
 - fix: Redirects get displayed inside page layouts as '0'
 - fix: Mysterious "0" Appearing When Admin Is Off
 - fix: Deletion of Products
2006-08-08 17:27:41 +00:00
Colin Kuskie
6a88fa5ca2 fix Asset.pm so that it returns undef if no valid Asset className is passed 2006-08-08 17:20:22 +00:00
JT Smith
2ea58485c9 - Added an option to override the session cookie name. 2006-08-04 15:16:18 +00:00
Len Kranendonk
6f2e0ab265 Fixed scoring sorting bugs 2006-08-04 11:06:21 +00:00
JT Smith
61b70325f2 - Added a --skipDelete option to upgrade.pl
- rfe: Approvers don't need to approve own changes
fixed a rare bug that could occur in archiving old threads
2006-08-03 19:20:55 +00:00
JT Smith
61eb59c7f8 bug fixes and new tests 2006-08-02 15:39:23 +00:00
Colin Kuskie
f5f239e577 fix typo in docs 2006-07-31 18:05:25 +00:00
Colin Kuskie
d154726bc1 Remove the use trace line from Paginator.t. It's not used.
Yet again, fix a security hole in the Include macro.  If the path used a symlink
then it would bypass one of the three security checks.
2006-07-30 18:10:31 +00:00
Colin Kuskie
84117932af add a test for the FormParam macro, and clarify in the docs that FormParam returns only the first value from a list 2006-07-29 03:31:59 +00:00
Colin Kuskie
00de81868b Two bugs in rollback.
The check for rolling back the pbversion0000000000001 tag wouldn't log any
errors because it was after the return 0 statement.

If a set of assets that were programmatically generated were rolled
back, and the assets had a parent child relationship then there's
a race condition that could cause the parent to be purged before
child.  Since purging the parent _also_ purges the child, the system
would try to purge the child twice and this causes a fatal error.
Programmatically generating the assets causes their revisionDates
to be the same, and that causes the return order of the assets to
be uncertain.

The solution is to generate the list of assets to be rolled back
by revisionDate _AND_ lineage.  This guarantees that children are
purged first.

This bug was exposed in t/Macro/RootTitle.t  However, the bug
seems to be system dependent since the revisionDate depends on how
fast the system can create assets.
2006-07-28 23:40:06 +00:00
Colin Kuskie
b2d4c36080 add Include macro test and fix Include bug 2006-07-28 16:11:47 +00:00
Colin Kuskie
23cc777add remove debugging code 2006-07-27 17:46:47 +00:00
Colin Kuskie
0d769e2e1e remove op2 code from printable macro 2006-07-27 16:49:05 +00:00
Colin Kuskie
5757842e46 Remove unused variable from r_printable.
Modify RootTitle to return root-1 instead of root.
2006-07-27 04:01:35 +00:00
JT Smith
8818309eaa - Added a forum.lastPost.user.hasRead variable to the Message Board template. 2006-07-26 22:26:19 +00:00
JT Smith
07301c12bd few more bug fixes and preparing for 7.0.3 release 2006-07-26 20:05:43 +00:00