add: Calendar can now choose workflow for Events
fix: Event now saves ownerUserId correctly add: GalleryAlbum now shows link to add a Photo added a test skeleton for Test::WWW::Mechanize tests
This commit is contained in:
parent
684ce5a7ca
commit
7668f68980
13 changed files with 533 additions and 15 deletions
|
|
@ -2,10 +2,13 @@
|
|||
- fix: template variable isUncommitted is not documented in the help
|
||||
- Cleaned the pollution from the forms system.
|
||||
- fix: Event is no longer editable by anyone who can add events
|
||||
- fix: Event now sets ownerUserId correctly
|
||||
- add: Calendar can now select which workflow to use for committing Events
|
||||
- fixed: Package search is slow for large websites
|
||||
- fixed: rich editor image picker displays incorrectly in IE
|
||||
- fixed: the export system was largely incomprehensible. rewritten.
|
||||
- the new export system now needs Path::Class
|
||||
- add: GalleryAlbum now shows link to add Photo
|
||||
|
||||
7.5.10
|
||||
- fix: Syntax error in GetCsMail
|
||||
|
|
|
|||
|
|
@ -7,13 +7,27 @@ upgrading from one version to the next, or even between multiple
|
|||
versions. Be sure to heed the warnings contained herein as they will
|
||||
save you many hours of grief.
|
||||
|
||||
|
||||
7.5.11
|
||||
--------------------------------------------------------------------
|
||||
* The exporting system before this release was largely incomprehensible and
|
||||
difficult to understand. It has been rewritten, and now requires Path::Class to
|
||||
function.
|
||||
|
||||
* WebGUI versions since 7.3.0 (when the new Calendar was added)
|
||||
have allowed users to post Events to Calendars, but the owner of
|
||||
the Event has been saved as Admin (user ID 3). Also, anyone who
|
||||
was allowed to add an Event was allowed to edit any Event in the
|
||||
Calendar.
|
||||
The permissions have now been fixed, but it is not possible to
|
||||
fix the owner of Events posted by individual users. Users are
|
||||
not allowed to edit the owner of an Event from the web interface
|
||||
as a security measure.
|
||||
The new permissions are:
|
||||
* Users who post an Event are allowed to edit and delete the
|
||||
Events they post
|
||||
* Users who can edit the Calendar are allowed to add, edit,
|
||||
and delete all Events
|
||||
|
||||
7.5.9
|
||||
--------------------------------------------------------------------
|
||||
* WebGUI 7.5.6 uses a Unicode database connection, but this can cause problems
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ finish($session); # this line required
|
|||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
#sub exampleFunction {
|
||||
# my $session = shift;
|
||||
# print "\tWe're doing some stuff here that you should know about... " unless $quiet;
|
||||
|
|
|
|||
|
|
@ -23,11 +23,13 @@ my $quiet; # this line required
|
|||
my $session = start(); # this line required
|
||||
|
||||
# upgrade functions go here
|
||||
addCalendarEventWorkflow( $session );
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
#sub exampleFunction {
|
||||
# my $session = shift;
|
||||
# print "\tWe're doing some stuff here that you should know about... " unless $quiet;
|
||||
|
|
@ -35,6 +37,25 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the database column to select the workflow to approve Calendar Events
|
||||
sub addCalendarEventWorkflow {
|
||||
my $session = shift;
|
||||
print "\tAdding Calendar Event Workflow field..." unless $quiet;
|
||||
|
||||
$session->db->write(
|
||||
qq{ ALTER TABLE Calendar ADD COLUMN workflowIdCommit VARCHAR(22) BINARY },
|
||||
);
|
||||
|
||||
# Add a nice default value
|
||||
$session->db->write(
|
||||
qq{ UPDATE Calendar SET workflowIdCommit = ? },
|
||||
[ $session->setting->get('defaultVersionTagWorkflow') ],
|
||||
);
|
||||
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue