- fix: Can't create new account
- fix: Several new assets aren't added to config during upgrade process - fix: Post Subject HTML - fix: Matrix: can't instantiate template
This commit is contained in:
parent
ebf8fd8065
commit
aaa93d466b
5 changed files with 25 additions and 6 deletions
|
|
@ -5,8 +5,13 @@
|
||||||
list
|
list
|
||||||
- fix: Syndicated wobject erro 6.8+
|
- fix: Syndicated wobject erro 6.8+
|
||||||
- fix: new spectre.pl error (Martin Kamerbeek / Procolix)
|
- fix: new spectre.pl error (Martin Kamerbeek / Procolix)
|
||||||
|
- fix: Can't create new account
|
||||||
|
- fix: Several new assets aren't added to config during upgrade process
|
||||||
|
- fix: Post Subject HTML
|
||||||
|
- fix: Matrix: can't instantiate template
|
||||||
- fix: Session id (Martin Kamerbeek / Procolix)
|
- fix: Session id (Martin Kamerbeek / Procolix)
|
||||||
|
|
||||||
|
|
||||||
7.0.0
|
7.0.0
|
||||||
- Welcome to a whole new world of WebGUI. After 2.5 years and 20,000 hours of
|
- Welcome to a whole new world of WebGUI. After 2.5 years and 20,000 hours of
|
||||||
development, WebGUI 7 is finally here.
|
development, WebGUI 7 is finally here.
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,19 @@ my $session = start(); # this line required
|
||||||
|
|
||||||
# upgrade functions go here
|
# upgrade functions go here
|
||||||
i18nDepartmentNames();
|
i18nDepartmentNames();
|
||||||
|
addMissingAssets();
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
#--------------------------------------------------
|
||||||
|
sub addMissingAssets {
|
||||||
|
print "\tAdding assets to config file that weren't added before.\n" unless ($quiet);
|
||||||
|
my $config = $session->config;
|
||||||
|
$config->addToArray("assets","WebGUI::Asset::Wobject::TimeTracking");
|
||||||
|
$config->addToArray("assets","WebGUI::Asset::Wobject::ProjectManager");
|
||||||
|
$config->addToArray("assets","WebGUI::Asset::Wobject::EventManagementSystem");
|
||||||
|
}
|
||||||
|
|
||||||
#--------------------------------------------------
|
#--------------------------------------------------
|
||||||
sub i18nDepartmentNames {
|
sub i18nDepartmentNames {
|
||||||
print "\tInternationalizing department settings in user profile\n" unless ($quiet);
|
print "\tInternationalizing department settings in user profile\n" unless ($quiet);
|
||||||
|
|
|
||||||
|
|
@ -695,6 +695,7 @@ sub postProcess {
|
||||||
if ($self->getThread->getParent->get("addEditStampToPosts")) {
|
if ($self->getThread->getParent->get("addEditStampToPosts")) {
|
||||||
$data{content} .= "<p>\n\n --- (".$i18n->get('Edited_on')." ".$self->session->datetime->epochToHuman(undef,"%z %Z [GMT%O]")." ".$i18n->get('By')." ".$user->profileField("alias").") --- \n</p>";
|
$data{content} .= "<p>\n\n --- (".$i18n->get('Edited_on')." ".$self->session->datetime->epochToHuman(undef,"%z %Z [GMT%O]")." ".$i18n->get('By')." ".$user->profileField("alias").") --- \n</p>";
|
||||||
}
|
}
|
||||||
|
$data{title} = WebGUI::HTML::filter($self->get("title"), "all");
|
||||||
$data{url} = $self->fixUrl($self->getThread->get("url")."/1") if ($self->isReply && $self->isNew);
|
$data{url} = $self->fixUrl($self->getThread->get("url")."/1") if ($self->isReply && $self->isNew);
|
||||||
$data{groupIdView} = $self->getThread->getParent->get("groupIdView");
|
$data{groupIdView} = $self->getThread->getParent->get("groupIdView");
|
||||||
$data{groupIdEdit} = $self->getThread->getParent->get("groupIdEdit");
|
$data{groupIdEdit} = $self->getThread->getParent->get("groupIdEdit");
|
||||||
|
|
|
||||||
|
|
@ -707,13 +707,15 @@ sub www_editListingSave {
|
||||||
usePreview => 1,
|
usePreview => 1,
|
||||||
sortOrder => 'desc',
|
sortOrder => 'desc',
|
||||||
sortBy => 'dateUpdated',
|
sortBy => 'dateUpdated',
|
||||||
notificationTemplateId =>'PBtmpl0000000000000027',
|
rssTemplateId=>'PBtmpl0000000000000142',
|
||||||
searchTemplateId =>'PBtmpl0000000000000031',
|
notificationTemplateId=>'PBtmpl0000000000000027',
|
||||||
postFormTemplateId =>'PBtmpl0000000000000029',
|
searchTemplateId=>'PBtmpl0000000000000031',
|
||||||
threadTemplateId =>'PBtmpl0000000000000032',
|
postFormTemplateId=>'PBtmpl0000000000000029',
|
||||||
collaborationTemplateId =>'PBtmpl0000000000000026',
|
threadTemplateId=>'PBtmpl0000000000000032',
|
||||||
|
collaborationTemplateId=>'PBtmpl0000000000000026',
|
||||||
karmaPerPost =>0,
|
karmaPerPost =>0,
|
||||||
karmaSpentToRate => 0,
|
karmaSpentToRate => 0,
|
||||||
|
approvalWorkflow=>"pbworkflow000000000003",
|
||||||
karmaRatingMultiplier => 0,
|
karmaRatingMultiplier => 0,
|
||||||
moderatePosts => 0,
|
moderatePosts => 0,
|
||||||
moderateGroupId => '4',
|
moderateGroupId => '4',
|
||||||
|
|
@ -1103,6 +1105,7 @@ sub www_viewDetail {
|
||||||
$var{screenshot} = $storage->getUrl($listing->{filename});
|
$var{screenshot} = $storage->getUrl($listing->{filename});
|
||||||
$var{thumbnail} = $storage->getThumbnailUrl($listing->{filename});
|
$var{thumbnail} = $storage->getThumbnailUrl($listing->{filename});
|
||||||
}
|
}
|
||||||
|
$forum->prepareView;
|
||||||
$var{"discussion"} = $forum->view;
|
$var{"discussion"} = $forum->view;
|
||||||
$var{'isLoggedIn'} = ($self->session->user->userId ne "1");
|
$var{'isLoggedIn'} = ($self->session->user->userId ne "1");
|
||||||
if ($self->session->form->process("do") eq "sendEmail" && $self->session->form->process("verify","captcha")) {
|
if ($self->session->form->process("do") eq "sendEmail" && $self->session->form->process("verify","captcha")) {
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ sub validateProfileData {
|
||||||
} elsif ($field->getId eq "email" && isDuplicateEmail($session,$data{$field->getId})) {
|
} elsif ($field->getId eq "email" && isDuplicateEmail($session,$data{$field->getId})) {
|
||||||
$warning .= '<li>'.$i18n->get(1072).'</li>';
|
$warning .= '<li>'.$i18n->get(1072).'</li>';
|
||||||
}
|
}
|
||||||
if ($field->getId eq "language") {
|
if ($field->getId eq "language" && $fieldValue ne "") {
|
||||||
unless (exists $i18n->getLanguages()->{$fieldValue}) {
|
unless (exists $i18n->getLanguages()->{$fieldValue}) {
|
||||||
$error .= '<li>'.$field->getLabel.' '.$i18n->get(451).'</li>';
|
$error .= '<li>'.$field->getLabel.' '.$i18n->get(451).'</li>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue