Compare commits

..

135 commits

Author SHA1 Message Date
arjan
51fa1cb324 Kleine wijzigingen, Docker best practises 2026-04-21 11:28:15 +02:00
Joeri de Bruin
5fc1c6bdae entrypoint script now upgrades 2026-02-25 18:22:25 +01:00
Joeri de Bruin
c6e7012f56 entrypoint script now upgrades 2026-02-25 18:22:11 +01:00
Joeri de Bruin
e07af2eb65 added upgrade scripts for 7.10.33 including upgrade to mysql 8.x 2026-02-25 17:28:31 +01:00
Joeri de Bruin
45a78c182f add log files for starting docker-compose 2026-02-25 13:02:28 +01:00
Joeri de Bruin
b83c2bffaa add log files for starting docker-compose 2026-02-25 12:58:12 +01:00
Joeri de Bruin
29a9831f53 add log files for starting docker-compose 2026-02-25 12:58:03 +01:00
e8f3bf6365 added custom module newsletter 2026-02-24 08:14:00 +01:00
c73e252bb5 added README.mf 2026-02-09 08:42:26 +01:00
743cdb196c Merge branch 'master' into Upgrade-to-modern-Perl
Make WebGUI 7.10 master again as we do not want to go to 8
2026-02-06 13:55:31 +01:00
3cc88f8150 Update to current Perl 2026-02-06 13:40:47 +01:00
colin
ebd46d86d4 Document change 2019-03-14 14:45:04 -07:00
Colin Kuskie
0aa1e4b878 Fix munged URLs in redirects for assets with isSecure set. 2019-03-14 14:38:44 -07:00
Colin Kuskie
fc9cf6b5ad Ready for 7.10.32 design cycle 2018-03-15 23:44:20 +00:00
Colin Kuskie
ae380069a6 Preparing for 7.10.31 release, again 2018-03-15 22:08:53 +00:00
root
653f8a02c1 Fix create and previousVersion SQL versions 2018-03-15 18:04:07 +00:00
Colin Kuskie
3c2e3dc642 Preparing for 7.10.31 development 2018-03-15 16:41:32 +00:00
Colin Kuskie
2ddfc83ee3 Preparing for 7.10.30 release 2018-03-15 04:24:17 +00:00
colin
ecb65bd724 Migrate to reCAPTCHA v2 2018-02-27 15:28:35 -08:00
colin
d760289918 Allow WebGUI::Cache and all consumers to fetch SSL URLs, but not verify the certificates. 2017-07-19 20:06:46 -07:00
colin
c75ef5e044 fixed: Warnings about API changes in POE::Component::IKC::ClientLite 2017-05-09 13:37:55 -07:00
colin
94f1f3506c Force tasks for a project to be ordered by when they were created instead of randomly. 2016-05-02 10:48:08 -07:00
colin
4f845b8a11 Preparing for WebGUI 7.10.30 release 2016-01-06 00:59:37 +00:00
colin
96edebb446 Fix number of skipped tests 2016-01-06 00:47:24 +00:00
colin
a117901df5 Clone the tinyMCE config to prevent referenced data from changing during init. Fixes #12461 2015-12-08 10:39:38 -08:00
colin
ec12a284eb Document the bugfix 2015-09-01 09:18:27 -07:00
Colin Kuskie
3268d32358 Asset Report NULL operators do not accept values. 2015-09-01 09:10:38 -07:00
Ernesto Hernández-Novich
501d5f3757 =item cannot be immediately followed by a number
Since Perl 5.20 a POD =item cannot start with single
number, as is the case in syncToCdn POD explanation of
return codes. Using pod2* reports syntax errors like

line 228: Expected text after =item, not a number

Wrapped the numbers with POD's zero-effect markup Z<>
to fix the issue.
2015-07-04 11:34:33 -04:30
Colin Kuskie
cc5f0a30ad Push out head tags for the custom color selector. 2015-03-10 14:05:18 -07:00
Colin Kuskie
6028535303 Also provide the correct mime type to speed up the parsing. 2015-02-18 13:43:40 -05:00
Colin Kuskie
df56936e59 Do not generate the Not Found page if JS or CSS was requested. Cut #1 2015-02-11 17:18:10 -08:00
Colin Kuskie
4649297b9f Fix typo in the account module skeleton 2014-11-19 09:41:11 -08:00
Colin Kuskie
c3f3dc0124 Ready for 7.10.30 development 2014-11-17 23:15:19 -05:00
Colin Kuskie
7cbc8f57ec Preparing for 7.10.29 release 2014-11-17 21:02:28 -05:00
Colin Kuskie
6d2199a083 Fix style declaration in minicart template for validation. Fixed #12456 2014-11-10 18:58:58 -05:00
Colin Kuskie
9e5c83dddb Update USPS International driver to V2 API and fix insurance. 2014-11-10 14:48:02 -05:00
Colin Kuskie
a5c6520a56 Update USPS ShipDriver to V4. Fixes bug #12455 2014-10-29 18:53:47 -04:00
Colin Kuskie
2f2887369e Fix bug #12454, loss of from field data when emailing groups 2014-10-16 16:33:09 -04:00
Colin Kuskie
b6196d9a77 Always return a good status from a Workflow Activity 2014-06-26 20:36:59 -07:00
Colin Kuskie
3666077fb1 WRE dependencies are tracked in the WRE itself, not in WebGUI.
This reverts commit a1c7db7388.
2013-03-21 16:14:37 -07:00
Colin Kuskie
92e6592df1 Ready for 7.10.29 development. 2013-03-20 21:38:23 -07:00
Colin Kuskie
1d49faa328 Preparing for release of 7.10.28 2013-03-20 15:38:18 -07:00
Colin Kuskie
52843ad7ca Fix a bug where cropping an image swaps the X and Y positions. Fixes bug #12413 2013-03-20 15:37:42 -07:00
Scott Walters
a1c7db7388 add String::Random which is used by the WRE 2012-11-28 19:10:03 -05:00
Colin Kuskie
21f9af32d2 Remove Clone from Spectre, too! 2012-11-16 09:34:21 -08:00
Colin Kuskie
2ec38b1407 When Group->new is called with a group that doesn't exist, it returns a faked Group object. Calling delete on this object fails for some Cache types. 2012-11-01 17:52:51 -07:00
Colin Kuskie
981ab43984 Ready for 7.10.28 development. 2012-10-29 20:07:20 -07:00
Colin Kuskie
6697bcbdee Repreparing for 7.10.27 release 2012-10-29 19:00:19 -07:00
Colin Kuskie
893521309b Preparing for 7.10.27 release. 2012-10-29 18:45:17 -07:00
Scott Walters
84a8b39d89 remove duplicate changelog entry 2012-10-27 02:02:52 -04:00
Scott Walters
fab70d71c7 gracefully handle Collaborations having no lastPostId in the MessageBoard asset 2012-10-27 02:02:27 -04:00
Scott Walters
9a45ff4b91 on invalid proceed method in call to editSave, warn and recover rather than run time error 2012-10-27 02:02:26 -04:00
Colin Kuskie
59ce3b3fd6 Upgrade YUI to 2.9.0 2012-10-24 10:40:52 -07:00
Colin Kuskie
be37f12ab1 Clone stopped working in several tests in 5.14.2. Remove it in favor of Storable::dclone.
Clone handles being passed scalar data, but dclone does not.
2012-10-23 10:00:53 -07:00
Colin Kuskie
1b4f7c33fa Fix a typo in a template help variable. 2012-10-22 18:48:08 -07:00
Colin Kuskie
fcbaa46c63 Fix a typo in the userImport POD. 2012-10-05 08:58:46 -07:00
Colin Kuskie
e046e5a8ce Fix rendering of the carousel inside of a Story. Fixes bug #12386 2012-09-20 14:00:57 -07:00
Colin Kuskie
50c7634800 Paste assets in the clipboard which are archived. 2012-09-19 16:39:12 -07:00
Colin Kuskie
8aaa37e5e1 Fix a bug in the EMS related to showing badge data when the badge data does not have related badge groups. 2012-09-18 15:22:33 -07:00
Colin Kuskie
ca78e1db4e Spectre is touchy about things that die in perl. Fix the UpdateAssetSubscribers workflow activity to catch if the group in the asset does not exist. 2012-09-16 20:51:18 -07:00
Colin Kuskie
2aeca17867 Add code to the upgrade skeleton to prevent empty version numbers from being used. 2012-09-14 10:22:23 -07:00
Colin Kuskie
61210fb776 Fix a problem similar to the Trash/utf-8 in the Clipboard. 2012-09-12 10:40:14 -07:00
Colin Kuskie
ef6eabfa9e Handle UTF-8 characters in asset titles in the trash. Fixes bug #12385. 2012-09-12 09:20:27 -07:00
Colin Kuskie
2d83f3c0d1 Add the same kind of performance data for Shortcuts, as AssetProxy macros. 2012-09-11 16:42:43 -07:00
Colin Kuskie
b37f9d581d Fix multiple issues with how Thingy handles default values, and values that are false. Fixes bug #12362 2012-09-05 09:50:36 -07:00
Colin Kuskie
56e8240006 Changelog notice for TinyMCE upgrade. 2012-08-30 16:02:25 -07:00
Colin Kuskie
3cfc42d38f Update TinyMCE to 3.5.6 2012-08-30 16:00:42 -07:00
Colin Kuskie
4f74c4cd3e Fix metaData revisionDates that were left as 0 from upgrades. Thanks to Dale Trexe for the script which inspired this upgrade sub. Fixes bug #12339. 2012-08-30 11:46:43 -07:00
Colin Kuskie
93f583d069 getLastPost in Thread.pm should not cast its data, but allow the asset to determine its own type. 2012-08-27 18:26:05 -07:00
Colin Kuskie
55893c0050 Fix Crud's pPFFP and commit the results this time so that I don't lose it and have to explain why I'm redoing 4 hours of painstaking form work with testing. Fixes bug #12382. 2012-08-23 15:00:09 -07:00
Colin Kuskie
4d3056299c Fix a POD typo in the userImport script. Fixes bug #12379 2012-08-21 12:59:34 -07:00
Colin Kuskie
e60c92693b Ready for 7.10.27 development. 2012-08-20 22:52:37 -07:00
Colin Kuskie
548ac8747b Preparing for 7.10.26 release 2012-08-20 21:54:49 -07:00
Colin Kuskie
7f8349e708 Update test to make it more robust as USPS International adds more shipping options. 2012-08-20 17:41:04 -07:00
Colin Kuskie
bac73de9b3 Alphabetize the list of authors in the credits again. 2012-08-18 12:53:29 -07:00
Colin Kuskie
83227bd8b7 Quote the search query in the paginator. Fixes bug #12378. 2012-08-18 12:50:24 -07:00
Colin Kuskie
4c31d182f8 Allow template diagnostics to work when a session asset is not set. Add a way to get the raw, encoded URL from the request object. 2012-08-15 08:39:54 -07:00
Colin Kuskie
358bc1557a Ready for 7.10.26 development (forgot to do this earlier) 2012-08-15 08:30:13 -07:00
Colin Kuskie
f417ddf0b1 Remove dead return code. 2012-08-13 16:17:18 -07:00
Colin Kuskie
212ebfdb23 Quiet log noise from LDAP group/WebGUI user membership mismatches. 2012-08-09 12:16:52 -07:00
Colin Kuskie
c0d0418191 Preparing for 7.10.25 release 2012-07-30 18:47:05 -07:00
Colin Kuskie
263b581a58 Handle the case of not being able to instanciate messages when deleting a whole list of them. 2012-07-26 16:00:28 -07:00
Colin Kuskie
79c843434c Fix the unlikely case of empty photo data in a Story asset when purging. 2012-07-26 15:11:40 -07:00
Colin Kuskie
c120a8b28d Only transfer data that's being used, to reduce loading and speed things up. 2012-07-20 10:52:56 -07:00
Colin Kuskie
7c03fc78b0 Allow a single asset to be passed into findBrokenAssets via --assetId 2012-07-20 10:48:34 -07:00
Colin Kuskie
ca2c06381a Fix gateway issues in several modules, including auth for password recovery. Fixes bug #12375 2012-07-19 09:39:12 -07:00
Colin Kuskie
6ca603e7dd Let the AssetReport asset search over all wobjects. 2012-07-17 11:28:11 -07:00
Colin Kuskie
d7b0468848 No indirect object syntax. 2012-07-16 08:59:25 -07:00
Colin Kuskie
f25e3948fe These secondary canView checks are not needed, since the whole thing is guarded by the canView at the top of www_manageRevisions. 2012-07-11 14:35:02 -07:00
Colin Kuskie
a3f5b3ae6c Handle the case when a friend approve message no longer exist. 2012-07-10 16:12:29 -07:00
Mark Leighton Fisher
7a6ee77a06 Fixed WebGUI::Asset::Wobject::Search::view() so HTML highlighting not broken by search phrase with unmatched char pairs
Fixed WebGUI::Asset::Wobject::Search::view() so HTML highlighting will not
be broken by a search phrase with unmatched char pairs like '()', '{}',
and '[]' (the HTML highlighter uses a regex internally for matching words
in the search phrase). Also fixed so ':' in the search phrase does not
confuse the HTML highlighter.
2012-07-02 17:03:58 -04:00
Colin Kuskie
dc4f813a5f Fixes to make WebGUI compatible with newer perls. 2012-06-29 13:24:13 -07:00
Scott Walters
0422807b32 Revert "group() function Survey::ExpressionEngine that returns 1/0 depending on whether the current user is in a group" -- wrong branch.
This reverts commit eaa29c5f44.

Conflicts:

	docs/changelog/7.x.x.txt
2012-06-19 19:31:50 -04:00
Scott Walters
3fe8f9a080 fix nasty data sync bug in WebGUI::User::friends that was causing the friendsGroup assigned to a user t
o immediately be lost and replaced a different one in a call to WebGUI::Friends->add, which creates sep
erate instances of users
2012-06-19 18:04:12 -04:00
Scott Walters
eaa29c5f44 group() function Survey::ExpressionEngine that returns 1/0 depending on whether the current user is in a group 2012-06-19 16:22:30 -04:00
Scott Walters
851844c917 lots of stuff expects the request object to have a hostname method. give it one. 2012-06-19 16:20:56 -04:00
Scott Walters
225df67d1f PseudoRequest shouldn't clobber Apache2::Cookies if the package already exists; mock requests are sometimes useful under mod_perl and this is a bit of a gotcha 2012-06-19 16:17:26 -04:00
Colin Kuskie
db3058c0b7 Removing exclude of files that don't exist anymore. 2012-06-11 10:20:05 -07:00
Colin Kuskie
ffcee041be Allow WebGUI::Fork's to be built for asset specific methods, and not only those found in WebGUI::Asset's namespace. 2012-06-08 08:43:52 -07:00
Colin Kuskie
6e8801600d Don't assume that users actually entered a URL to proxy in an HTTP Proxy asset. This would be reasonable. 2012-06-07 09:40:17 -07:00
Arjan Widlak
2cb7c5b85b Correction on test introduced in fix of bug 12365 commit 7ab4726600 2012-06-05 15:04:18 +02:00
Arjan Widlak
5dfe488ac8 typo in pod 2012-06-05 12:42:24 +02:00
Arjan Widlak
7ab4726600 - fixed #12365: editing a metadata category may cause a fatal error 2012-06-05 12:34:50 +02:00
Colin Kuskie
8370cb15c8 Prevent a bunch of warnings about workflows that have not yet been run when getting the status report from Spectre. 2012-06-01 16:21:46 -07:00
Colin Kuskie
49ee896aa2 For sites with shared hosting, setting the time between workflows to be larger than 1 can slow or stop processing or workflows. 2012-05-30 21:59:20 -07:00
Colin Kuskie
2aa8de8a86 Don't pull data from the version tag table that isn't used. 2012-05-29 19:51:26 -07:00
Colin Kuskie
fd4b75b2b2 Make sure that the session actually contains a slave connection before trying to use it. Fixes bug #12305 2012-05-28 14:28:01 -07:00
Colin Kuskie
45d7c5505f Do not show Tickets in the schedule screen when they are either in the Trash or in the Clipboard. Fixes bug #12345. 2012-05-26 20:59:14 -07:00
Colin Kuskie
ee783e7374 Make exporting assets as HTML work when an export with mobile styling has been selected. Fixes bug #12364 2012-05-26 20:40:38 -07:00
Colin Kuskie
70c9939169 Make sure that viewing permissions are obeyed in the method, and that the DataForm just doesn't hide the link. Fixes bug #12353. 2012-04-17 19:02:12 -07:00
Colin Kuskie
2c225f30f5 Do not attempt to change the status on an inbox message which doesn't exist. Fixes bug #12349. 2012-04-02 18:33:38 -07:00
Colin Kuskie
07bd545538 Remove cookie jar files left by the HttpProxy asset. Finishes the fix for bug #12327. 2012-04-02 18:32:13 -07:00
Colin Kuskie
604887ff66 Fix an I/O wrapping problem with checking for broken file assets and storage locations. 2012-04-02 11:09:53 -07:00
Scott Walters
d4f63b2bce fixed #12346: toVersion in upgrade_7.9.34-7.10.22.pl was "0.0.0" 2012-03-22 00:13:50 -04:00
Colin Kuskie
fcd933489b Fix the duplicating of events with related links that have restrictive permissions. Fixes bug #12010. 2012-03-20 11:59:13 -07:00
Colin Kuskie
1eb5579f67 Update test for change in USPS International service options. 2012-03-17 17:42:58 -07:00
Colin Kuskie
275fcd0bb8 Do not return content from cacheByHTTP if the request errors, otherwise callers can process bad content, like SC assets expecting RSS feeds and getting 404 error pages. 2012-03-13 21:29:32 -07:00
Colin Kuskie
4f85ad56e6 Do not build a massive array of users when giving each user an address book from their profile. Instead, get one userId at a time. 2012-03-11 16:04:31 -07:00
Colin Kuskie
9a09ec0447 sslEnabled in the config file trumps encryptLogin in the settings. 2012-03-11 16:04:31 -07:00
Chris Liu
b39a7d5f0f Fixed bug 12297 - keywords.form help text 2012-03-09 14:23:47 -06:00
Colin Kuskie
d55f8ee897 Document the bugfix for Crud form handling. 2012-03-06 22:40:48 -08:00
Colin Kuskie
4a8c63ec0a Make sure that lastUpdated in updated in the database as well as in the object. 2012-03-05 17:56:46 -08:00
Colin Kuskie
92f4a5f1af Document a template variable that already existed to fulfill RFE #9730. 2012-02-29 23:51:57 -08:00
Colin Kuskie
d2f157ddea Provide a fallback for contents of .wgaccess files. Fixes bug #12328 2012-02-24 22:27:44 -08:00
Colin Kuskie
99fa73ab34 Document bugfix. 2012-02-24 22:23:13 -08:00
david nicol
ff28ef9dc1 #13787 issue -- and general core repair 2012-02-24 22:22:36 -08:00
Colin Kuskie
3b544ee4fb Fix a problem with fixing parents. Better handling of potential problems in File assets with no storage location. 2012-02-17 17:26:43 -08:00
Colin Kuskie
aa76dc52cd Document the bug fix for the flat discount asset. 2012-02-15 16:37:07 -08:00
Colin Kuskie
e86b7bb180 Fix the FlatDiscount, so that it actually discounts all the time. 2012-02-15 16:36:55 -08:00
Colin Kuskie
82554add6b Make sure that HttpProxy cleans up after itself when purging assets or revisions. 2012-02-14 15:30:07 -08:00
Colin Kuskie
80ec20b8f2 Fix a typo in a used module name. 2012-02-14 15:29:44 -08:00
Colin Kuskie
2dbd38f519 Make a safe copy of the config file before modifying it. Fixes bug #12322. 2012-02-04 14:52:16 -08:00
Colin Kuskie
78159c9795 Fix typo introduced into Group.pm 2012-01-31 15:37:08 -08:00
Colin Kuskie
20e49b51d6 Try to trap errors while loading classes. Fixes bug #12321. 2012-01-26 16:04:02 -08:00
Colin Kuskie
3a3227cd6d Fix a typo in the documentation for the list of assets in the Admin Console. Thanks to ckotil for pointing it out. 2012-01-19 14:35:38 -08:00
10 changed files with 1103 additions and 751 deletions

View file

@ -1,15 +0,0 @@
# https://medium.com/@bounouh.fedi/mastering-the-dockerignore-file-boosting-docker-build-efficiency-398719f4a0e1
# Ignore version control (directories), not needed in container
.git
.git/
.gitignore
# If we're cacheing cpan modules, so they are not downloaded every time
# ignore these caches in the container
.cpanrc
cpan-cache/
# Ignore Docker-related files
Dockerfile*
.dockerignore

View file

@ -1,14 +1,14 @@
FROM debian:trixie
FROM debian:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt -y install perl cpanminus libaspell-dev make libdbd-mysql-perl libdigest-perl-md5-perl libxml-simple-perl \
libmodule-install-perl gcc libperl-dev default-libmysqlclient-dev libpng-dev build-essential libgd-dev mariadb-client imagemagick \
libpng-dev libjpeg-dev libtiff-dev libapache2-mod-perl2 libapache2-mod-perl2-dev libapache2-request-perl libimage-magick-perl vim \
apache2 apache2-utils mailutils
apache2 apache2-utils
RUN cpanm --notest --no-cache --force \
RUN cpanm --notest --force \
Algorithm::Permute \
App::Cmd \
Archive::Any \
@ -79,7 +79,6 @@ RUN cpanm --notest --no-cache --force \
List::MoreUtils \
Locales \
Log::Log4perl \
Mail::DeliveryStatus::BounceParser \
MIME::Tools \
Module::Find \
Monkey::Patch \
@ -141,9 +140,6 @@ RUN cpanm --notest --no-cache --force \
common::sense \
namespace::autoclean
RUN apt -y remove libjson-xs-perl
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
#RUN cpanm --notest --force \
# DBD::mysql@4.051

View file

@ -13,13 +13,10 @@ services:
volumes:
- ./share/create.sql:/docker-entrypoint-initdb.d/1.sql
ports:
- 3306:3306
- 3306
webgui:
image: webgui:latest
build:
context: ..
dockerfile: Dockerfile
image: webgui
container_name: webgui
depends_on:
- db
@ -41,4 +38,4 @@ services:
#- "443:443"
# TODO: serve staatic files directly from nginx
#- ./www:/var/www/html:ro

View file

@ -29,16 +29,8 @@ for configfile in `perl -Ilib sbin/wgd for-each`;do
## perl -Ilib sbin/wgd db --config-file=www.example.com --webgui-root=/data/WebGUI
#install newsletter module
perl -I /data/WebGUI/lib -I /data/WebGUI/custom/webgui_newsletter/lib /data/WebGUI/custom/webgui_newsletter/sbin/install_icons.pl --customRoot=/data/WebGUI/custom
cd /data/WebGUI/lib
perl -I /data/WebGUI/lib -I /data/WebGUI/custom/webgui_newsletter/lib /data/WebGUI/custom/webgui_newsletter/sbin/install_newsletter.pl --configFile=www.example.com.conf
fi
done
perl -I/data/WebGUI/lib sbin/spectre.pl --daemon

View file

@ -1,6 +1,6 @@
<VirtualHost 0.0.0.0:80>
ServerName localhost
ServerAlias webgui www.example.com example.com unitedknowledge.vps2.unitedknowledge.net www.unitedknowledge.eu unitedknowledge.eu www.united-knowledge.eu united-knowledge.eu www.unitedknowledge.net unitedknowledge.net
ServerName www.example.com
ServerAlias webgui localhost example.com unitedknowledge.vps2.unitedknowledge.net www.unitedknowledge.eu unitedknowledge.eu www.united-knowledge.eu united-knowledge.eu www.unitedknowledge.net unitedknowledge.net
DocumentRoot /data/WebGUI/www
SetEnvIf SSLPROXY "1" \
SSLPROXY

View file

@ -4,7 +4,7 @@
# system is capable of. To unleash the full power read the config file manual
# http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/Config.html
log4perl.logger = WARN, mainlog
log4perl.logger = ERROR, mainlog
log4perl.appender.mainlog = Log::Log4perl::Appender::File
log4perl.appender.mainlog.filename = /var/log/webgui.log
log4perl.appender.mainlog.layout = PatternLayout

File diff suppressed because it is too large Load diff

View file

@ -155,7 +155,6 @@ sub loadSiteData {
}
else {
my $siteData = {};
print "Reading site configs. $url responded with: " . $response->content . "\n";
eval { $siteData = JSON::decode_json($response->content); };
if ($@) {
$self->error("Couldn't fetch Spectre configuration data for $key : $@");

View file

@ -19,7 +19,7 @@ use WebGUI::Asset;
use WebGUI::Form;
use WebGUI::Utility;
use WebGUI::International;
use JSON -convert_blessed_universally;
use JSON;
our @ISA = qw(WebGUI::Asset);
@ -664,10 +664,9 @@ EOHTML1
if ( $ask ) {
$config->{mode} = "none";
}
$self->session->log->debug("config: $config->{mode} ");
$out .= $self->getLoadPlugins;
$out .= "\ttinyMCE.init(" . JSON->new->allow_blessed->pretty->encode( $config ) . " );\n";
$out .= "\ttinyMCE.init(" . JSON->new->pretty->encode( $config ) . " );\n";
$out .= "</script>";
}

View file

@ -233,7 +233,7 @@ sub crud_createTable {
my $tableName = $class->crud_getTableName($session);
$class->crud_dropTable($session);
$db->write('create table '.$dbh->quote_identifier($tableName).' (
'.$dbh->quote_identifier($class->crud_getTableKey($session)).' CHAR(22) binary not null default "" primary key,
'.$dbh->quote_identifier($class->crud_getTableKey($session)).' CHAR(22) binary not null primary key,
sequenceNumber int not null default 1,
dateCreated datetime,
lastUpdated datetime
@ -468,7 +468,7 @@ sub crud_updateTable {
my $notNullClause = ($isKey || $defaultValue ne "") ? "not null" : "";
my $defaultClause = '';
if ($fieldType !~ /(?:text|blob)$/i) {
$defaultClause = "default ".$dbh->quote($defaultValue);
$defaultClause = "default ".$dbh->quote($defaultValue) if ($defaultValue ne "");
}
if (exists $tableFields{$property}) {
my $changed = 0;